|
| 1 | +error: `use<...>` precise capturing syntax not allowed in supertrait bounds |
| 2 | + --> $DIR/illegal-positions.rs:9:12 |
| 3 | + | |
| 4 | +LL | trait Foo: use<> { |
| 5 | + | ^^^^^ |
| 6 | + |
| 7 | +error: `use<...>` precise capturing syntax not allowed in bounds |
| 8 | + --> $DIR/illegal-positions.rs:11:33 |
| 9 | + | |
| 10 | +LL | type Assoc: use<> where (): use<>; |
| 11 | + | ^^^^^ |
| 12 | + |
| 13 | +error: `use<...>` precise capturing syntax not allowed in bounds |
| 14 | + --> $DIR/illegal-positions.rs:11:17 |
| 15 | + | |
| 16 | +LL | type Assoc: use<> where (): use<>; |
| 17 | + | ^^^^^ |
| 18 | + |
| 19 | +error: `use<...>` precise capturing syntax not allowed in bounds |
| 20 | + --> $DIR/illegal-positions.rs:17:11 |
| 21 | + | |
| 22 | +LL | fn fun<T: use<>>(_: impl use<>) where (): use<> {} |
| 23 | + | ^^^^^ |
| 24 | + |
| 25 | +error: `use<...>` precise capturing syntax not allowed in bounds |
| 26 | + --> $DIR/illegal-positions.rs:17:43 |
| 27 | + | |
| 28 | +LL | fn fun<T: use<>>(_: impl use<>) where (): use<> {} |
| 29 | + | ^^^^^ |
| 30 | + |
| 31 | +error: at least one trait must be specified |
| 32 | + --> $DIR/illegal-positions.rs:17:21 |
| 33 | + | |
| 34 | +LL | fn fun<T: use<>>(_: impl use<>) where (): use<> {} |
| 35 | + | ^^^^^^^^^^ |
| 36 | + |
| 37 | +error: `use<...>` precise capturing syntax not allowed in `dyn` trait object bounds |
| 38 | + --> $DIR/illegal-positions.rs:24:25 |
| 39 | + | |
| 40 | +LL | fn dynamic() -> Box<dyn use<>> {} |
| 41 | + | ^^^^^ |
| 42 | + |
| 43 | +warning: the feature `precise_capturing` is incomplete and may not be safe to use and/or cause compiler crashes |
| 44 | + --> $DIR/illegal-positions.rs:5:12 |
| 45 | + | |
| 46 | +LL | #![feature(precise_capturing)] |
| 47 | + | ^^^^^^^^^^^^^^^^^ |
| 48 | + | |
| 49 | + = note: see issue #123432 <https://github.com/rust-lang/rust/issues/123432> for more information |
| 50 | + = note: `#[warn(incomplete_features)]` on by default |
| 51 | + |
| 52 | +error: `use<...>` precise capturing syntax not allowed in argument-position `impl Trait` |
| 53 | + --> $DIR/illegal-positions.rs:17:26 |
| 54 | + | |
| 55 | +LL | fn fun<T: use<>>(_: impl use<>) where (): use<> {} |
| 56 | + | ^^^^^ |
| 57 | + |
| 58 | +error[E0224]: at least one trait is required for an object type |
| 59 | + --> $DIR/illegal-positions.rs:24:21 |
| 60 | + | |
| 61 | +LL | fn dynamic() -> Box<dyn use<>> {} |
| 62 | + | ^^^^^^^^^ |
| 63 | + |
| 64 | +error: aborting due to 9 previous errors; 1 warning emitted |
| 65 | + |
| 66 | +For more information about this error, try `rustc --explain E0224`. |
0 commit comments