|
| 1 | +error[E0575]: expected associated type, found associated function `Tr::method` |
| 2 | + --> $DIR/bare-path.rs:15:5 |
| 3 | + | |
| 4 | +LL | <T as Tr>::method(..): Send, |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^ not a associated type |
| 6 | + |
| 7 | +warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes |
| 8 | + --> $DIR/bare-path.rs:1:12 |
| 9 | + | |
| 10 | +LL | #![feature(return_type_notation)] |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 12 | + | |
| 13 | + = note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information |
| 14 | + = note: `#[warn(incomplete_features)]` on by default |
| 15 | + |
| 16 | +error: return type notation not allowed in this position yet |
| 17 | + --> $DIR/bare-path.rs:19:23 |
| 18 | + | |
| 19 | +LL | let _ = T::CONST::(..); |
| 20 | + | ^^^^ |
| 21 | + |
| 22 | +error: return type notation not allowed in this position yet |
| 23 | + --> $DIR/bare-path.rs:21:21 |
| 24 | + | |
| 25 | +LL | let _: T::method(..); |
| 26 | + | ^^^^ |
| 27 | + |
| 28 | +error: return type notation not allowed in this position yet |
| 29 | + --> $DIR/bare-path.rs:12:14 |
| 30 | + | |
| 31 | +LL | T::method(..): Send, |
| 32 | + | ^^^^ |
| 33 | + |
| 34 | +error: return type notation not allowed in this position yet |
| 35 | + --> $DIR/bare-path.rs:15:22 |
| 36 | + | |
| 37 | +LL | <T as Tr>::method(..): Send, |
| 38 | + | ^^^^ |
| 39 | + |
| 40 | +error: expected type, found function |
| 41 | + --> $DIR/bare-path.rs:12:8 |
| 42 | + | |
| 43 | +LL | T::method(..): Send, |
| 44 | + | ^^^^^^ unexpected function |
| 45 | + | |
| 46 | +note: the associated function is defined here |
| 47 | + --> $DIR/bare-path.rs:7:5 |
| 48 | + | |
| 49 | +LL | fn method() -> impl Sized; |
| 50 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 51 | + |
| 52 | +error: expected type, found function |
| 53 | + --> $DIR/bare-path.rs:21:15 |
| 54 | + | |
| 55 | +LL | let _: T::method(..); |
| 56 | + | ^^^^^^ unexpected function |
| 57 | + | |
| 58 | +note: the associated function is defined here |
| 59 | + --> $DIR/bare-path.rs:7:5 |
| 60 | + | |
| 61 | +LL | fn method() -> impl Sized; |
| 62 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 63 | + |
| 64 | +error: aborting due to 7 previous errors; 1 warning emitted |
| 65 | + |
| 66 | +For more information about this error, try `rustc --explain E0575`. |
0 commit comments