]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trait-object-polytrait-priority.stderr
Merge commit '7b73b60faca71d01d900e49831fcb84553e93019' into sync-rustfmt
[rust.git] / src / test / ui / parser / trait-object-polytrait-priority.stderr
1 error[E0178]: expected a path on the left-hand side of `+`, not `&for<'a> Trait<'a>`
2   --> $DIR/trait-object-polytrait-priority.rs:6:12
3    |
4 LL |     let _: &for<'a> Trait<'a> + 'static;
5    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try adding parentheses: `&(for<'a> Trait<'a> + 'static)`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0178`.