rust/tests/ui/did_you_mean/E0178.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
937 B
Plaintext
Raw Normal View History

2017-03-28 07:10:16 -05:00
error[E0178]: expected a path on the left-hand side of `+`, not `&'a Foo`
2019-05-28 13:46:13 -05:00
--> $DIR/E0178.rs:6:8
2017-03-28 07:10:16 -05:00
|
2019-03-09 06:03:44 -06:00
LL | w: &'a Foo + Copy,
2017-04-25 06:35:04 -05:00
| ^^^^^^^^^^^^^^ help: try adding parentheses: `&'a (Foo + Copy)`
2017-03-28 07:10:16 -05:00
error[E0178]: expected a path on the left-hand side of `+`, not `&'a Foo`
2019-05-28 13:46:13 -05:00
--> $DIR/E0178.rs:7:8
2017-03-28 07:10:16 -05:00
|
2019-03-09 06:03:44 -06:00
LL | x: &'a Foo + 'a,
2017-04-25 06:35:04 -05:00
| ^^^^^^^^^^^^ help: try adding parentheses: `&'a (Foo + 'a)`
2017-03-28 07:10:16 -05:00
error[E0178]: expected a path on the left-hand side of `+`, not `&'a mut Foo`
2019-05-28 13:46:13 -05:00
--> $DIR/E0178.rs:8:8
2017-03-28 07:10:16 -05:00
|
2019-03-09 06:03:44 -06:00
LL | y: &'a mut Foo + 'a,
2017-04-25 06:35:04 -05:00
| ^^^^^^^^^^^^^^^^ help: try adding parentheses: `&'a mut (Foo + 'a)`
2017-03-28 07:10:16 -05:00
error[E0178]: expected a path on the left-hand side of `+`, not `fn() -> Foo`
2019-05-28 13:46:13 -05:00
--> $DIR/E0178.rs:9:8
2017-03-28 07:10:16 -05:00
|
2019-03-09 06:03:44 -06:00
LL | z: fn() -> Foo + 'a,
2017-03-28 07:10:16 -05:00
| ^^^^^^^^^^^^^^^^ perhaps you forgot parentheses?
error: aborting due to 4 previous errors
2017-03-28 07:10:16 -05:00
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0178`.