]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/E0178.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / did_you_mean / E0178.stderr
1 error[E0178]: expected a path on the left-hand side of `+`, not `&'a Foo`
2   --> $DIR/E0178.rs:6:8
3    |
4 LL |     w: &'a Foo + Copy,
5    |        ^^^^^^^^^^^^^^ help: try adding parentheses: `&'a (Foo + Copy)`
6
7 error[E0178]: expected a path on the left-hand side of `+`, not `&'a Foo`
8   --> $DIR/E0178.rs:7:8
9    |
10 LL |     x: &'a Foo + 'a,
11    |        ^^^^^^^^^^^^ help: try adding parentheses: `&'a (Foo + 'a)`
12
13 error[E0178]: expected a path on the left-hand side of `+`, not `&'a mut Foo`
14   --> $DIR/E0178.rs:8:8
15    |
16 LL |     y: &'a mut Foo + 'a,
17    |        ^^^^^^^^^^^^^^^^ help: try adding parentheses: `&'a mut (Foo + 'a)`
18
19 error[E0178]: expected a path on the left-hand side of `+`, not `fn() -> Foo`
20   --> $DIR/E0178.rs:9:8
21    |
22 LL |     z: fn() -> Foo + 'a,
23    |        ^^^^^^^^^^^^^^^^ perhaps you forgot parentheses?
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0178`.