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