rust/tests/ui/parser/bounds-type.stderr

21 lines
458 B
Plaintext

error: `?` may only modify trait bounds, not lifetime bounds
--> $DIR/bounds-type.rs:10:8
|
LL | T: ?'a,
| ^
error: `~const` may only modify trait bounds, not lifetime bounds
--> $DIR/bounds-type.rs:15:8
|
LL | T: ~const 'a,
| ^^^^^^
error: `const` may only modify trait bounds, not lifetime bounds
--> $DIR/bounds-type.rs:16:8
|
LL | T: const 'a,
| ^^^^^
error: aborting due to 3 previous errors