rust/tests/ui/parser/trait-object-polytrait-priority.stderr
2025-11-27 14:13:58 -05:00

14 lines
440 B
Text

error[E0178]: expected a path on the left-hand side of `+`
--> $DIR/trait-object-polytrait-priority.rs:7:12
|
LL | let _: &for<'a> Trait<'a> + 'static;
| ^^^^^^^^^^^^^^^^^^
|
help: try adding parentheses
|
LL | let _: &(for<'a> Trait<'a> + 'static);
| + +
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0178`.