|
| 1 | +warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes |
| 2 | + --> $DIR/path-ambiguous.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[E0221]: ambiguous associated function `method` in bounds of `T` |
| 11 | + --> $DIR/path-ambiguous.rs:13:5 |
| 12 | + | |
| 13 | +LL | fn method() -> impl Sized; |
| 14 | + | -------------------------- ambiguous `method` from `A` |
| 15 | +... |
| 16 | +LL | fn method() -> impl Sized; |
| 17 | + | -------------------------- ambiguous `method` from `B` |
| 18 | +... |
| 19 | +LL | T::method(..): Send, |
| 20 | + | ^^^^^^^^^^^^^ ambiguous associated function `method` |
| 21 | + | |
| 22 | +help: use fully-qualified syntax to disambiguate |
| 23 | + | |
| 24 | +LL | <T as B>::method(..): Send, |
| 25 | + | ~~~~~~~~~~ |
| 26 | +help: use fully-qualified syntax to disambiguate |
| 27 | + | |
| 28 | +LL | <T as A>::method(..): Send, |
| 29 | + | ~~~~~~~~~~ |
| 30 | + |
| 31 | +error[E0221]: ambiguous associated function `method` in bounds of `T` |
| 32 | + --> $DIR/path-ambiguous.rs:22:5 |
| 33 | + | |
| 34 | +LL | fn method() -> impl Sized; |
| 35 | + | -------------------------- ambiguous `method` from `A` |
| 36 | +... |
| 37 | +LL | fn method() -> impl Sized; |
| 38 | + | -------------------------- ambiguous `method` from `B` |
| 39 | +... |
| 40 | +LL | T::method(..): Send, |
| 41 | + | ^^^^^^^^^^^^^ ambiguous associated function `method` |
| 42 | + | |
| 43 | +help: use fully-qualified syntax to disambiguate |
| 44 | + | |
| 45 | +LL | <T as B>::method(..): Send, |
| 46 | + | ~~~~~~~~~~ |
| 47 | +help: use fully-qualified syntax to disambiguate |
| 48 | + | |
| 49 | +LL | <T as A>::method(..): Send, |
| 50 | + | ~~~~~~~~~~ |
| 51 | + |
| 52 | +error: aborting due to 2 previous errors; 1 warning emitted |
| 53 | + |
| 54 | +For more information about this error, try `rustc --explain E0221`. |
0 commit comments