mirror of https://github.com/rust-lang/rust
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
--> $DIR/rtn-in-impl-signature.rs:1:12
|
|
|
|
|
LL | #![feature(return_type_notation)]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
error[E0229]: associated item constraints are not allowed here
|
|
--> $DIR/rtn-in-impl-signature.rs:10:17
|
|
|
|
|
LL | impl Super1<'_, bar(): Send> for () {}
|
|
| ^^^^^^^^^^^ associated item constraint not allowed here
|
|
|
|
error[E0046]: not all trait items implemented, missing: `bar`
|
|
--> $DIR/rtn-in-impl-signature.rs:10:1
|
|
|
|
|
LL | fn bar<'b>() -> bool;
|
|
| --------------------- `bar` from trait
|
|
...
|
|
LL | impl Super1<'_, bar(): Send> for () {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `bar` in implementation
|
|
|
|
error: aborting due to 2 previous errors; 1 warning emitted
|
|
|
|
Some errors have detailed explanations: E0046, E0229.
|
|
For more information about an error, try `rustc --explain E0046`.
|