mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
e4d816e66c
Fixes #109869
15 lines
523 B
Plaintext
15 lines
523 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/ice-trait-with-default-method-but-no-impl-broken-mir-109869-trivial-bounds.rs:13:9
|
|
|
|
|
LL | fn default() -> Self {
|
|
| ---- expected `(dyn Empty + 'static)` because of return type
|
|
LL | ()
|
|
| ^^ expected `dyn Empty`, found `()`
|
|
|
|
|
= note: expected trait object `(dyn Empty + 'static)`
|
|
found unit type `()`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|