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