|
| 1 | +warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes |
| 2 | + --> $DIR/display.rs:1:12 |
| 3 | + | |
| 4 | +LL | #![feature(return_type_notation)] |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information |
| 8 | + = note: `#[warn(incomplete_features)]` on by default |
| 9 | + |
| 10 | +error[E0277]: the trait bound `impl Sized { <T as Assoc>::method(..) }: Trait` is not satisfied |
| 11 | + --> $DIR/display.rs:15:17 |
| 12 | + | |
| 13 | +LL | needs_trait(T::method()); |
| 14 | + | ----------- ^^^^^^^^^^^ the trait `Trait` is not implemented for `impl Sized { <T as Assoc>::method(..) }` |
| 15 | + | | |
| 16 | + | required by a bound introduced by this call |
| 17 | + | |
| 18 | +note: required by a bound in `needs_trait` |
| 19 | + --> $DIR/display.rs:5:24 |
| 20 | + | |
| 21 | +LL | fn needs_trait(_: impl Trait) {} |
| 22 | + | ^^^^^ required by this bound in `needs_trait` |
| 23 | + |
| 24 | +error[E0277]: the trait bound `impl Sized { <T as Assoc>::method_with_lt(..) }: Trait` is not satisfied |
| 25 | + --> $DIR/display.rs:17:17 |
| 26 | + | |
| 27 | +LL | needs_trait(T::method_with_lt()); |
| 28 | + | ----------- ^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `impl Sized { <T as Assoc>::method_with_lt(..) }` |
| 29 | + | | |
| 30 | + | required by a bound introduced by this call |
| 31 | + | |
| 32 | +note: required by a bound in `needs_trait` |
| 33 | + --> $DIR/display.rs:5:24 |
| 34 | + | |
| 35 | +LL | fn needs_trait(_: impl Trait) {} |
| 36 | + | ^^^^^ required by this bound in `needs_trait` |
| 37 | + |
| 38 | +error[E0277]: the trait bound `impl Sized: Trait` is not satisfied |
| 39 | + --> $DIR/display.rs:19:17 |
| 40 | + | |
| 41 | +LL | needs_trait(T::method_with_ty()); |
| 42 | + | ----------- ^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `impl Sized` |
| 43 | + | | |
| 44 | + | required by a bound introduced by this call |
| 45 | + | |
| 46 | +help: this trait has no implementations, consider adding one |
| 47 | + --> $DIR/display.rs:4:1 |
| 48 | + | |
| 49 | +LL | trait Trait {} |
| 50 | + | ^^^^^^^^^^^ |
| 51 | +note: required by a bound in `needs_trait` |
| 52 | + --> $DIR/display.rs:5:24 |
| 53 | + | |
| 54 | +LL | fn needs_trait(_: impl Trait) {} |
| 55 | + | ^^^^^ required by this bound in `needs_trait` |
| 56 | + |
| 57 | +error[E0277]: the trait bound `impl Sized: Trait` is not satisfied |
| 58 | + --> $DIR/display.rs:21:17 |
| 59 | + | |
| 60 | +LL | needs_trait(T::method_with_ct()); |
| 61 | + | ----------- ^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `impl Sized` |
| 62 | + | | |
| 63 | + | required by a bound introduced by this call |
| 64 | + | |
| 65 | +help: this trait has no implementations, consider adding one |
| 66 | + --> $DIR/display.rs:4:1 |
| 67 | + | |
| 68 | +LL | trait Trait {} |
| 69 | + | ^^^^^^^^^^^ |
| 70 | +note: required by a bound in `needs_trait` |
| 71 | + --> $DIR/display.rs:5:24 |
| 72 | + | |
| 73 | +LL | fn needs_trait(_: impl Trait) {} |
| 74 | + | ^^^^^ required by this bound in `needs_trait` |
| 75 | + |
| 76 | +error: aborting due to 4 previous errors; 1 warning emitted |
| 77 | + |
| 78 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments