1error[E0178]: expected a path on the left-hand side of `+`, not `&'a Foo`
2  --> $DIR/E0178.rs:6:8
3   |
4LL |     w: &'a Foo + Copy,
5   |        ^^^^^^^^^^^^^^ help: try adding parentheses: `&'a (Foo + Copy)`
6
7error[E0178]: expected a path on the left-hand side of `+`, not `&'a Foo`
8  --> $DIR/E0178.rs:7:8
9   |
10LL |     x: &'a Foo + 'a,
11   |        ^^^^^^^^^^^^ help: try adding parentheses: `&'a (Foo + 'a)`
12
13error[E0178]: expected a path on the left-hand side of `+`, not `&'a mut Foo`
14  --> $DIR/E0178.rs:8:8
15   |
16LL |     y: &'a mut Foo + 'a,
17   |        ^^^^^^^^^^^^^^^^ help: try adding parentheses: `&'a mut (Foo + 'a)`
18
19error[E0178]: expected a path on the left-hand side of `+`, not `fn() -> Foo`
20  --> $DIR/E0178.rs:9:8
21   |
22LL |     z: fn() -> Foo + 'a,
23   |        ^^^^^^^^^^^^^^^^ perhaps you forgot parentheses?
24
25error: aborting due to 4 previous errors
26
27For more information about this error, try `rustc --explain E0178`.
28