rust/tests/ui/issues/issue-21701.stderr

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

31 lines
768 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0618]: expected function, found `U`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-21701.rs:2:13
2018-07-15 16:11:54 -05:00
|
LL | fn foo<U>(t: U) {
| - `t` has type `U`
2018-07-15 16:11:54 -05:00
LL | let y = t();
| ^--
| |
| call expression requires function
2018-07-15 16:11:54 -05:00
error[E0618]: expected function, found struct `Bar`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-21701.rs:9:13
2018-07-15 16:11:54 -05:00
|
LL | struct Bar;
| ---------- struct `Bar` defined here
2018-07-15 16:11:54 -05:00
...
LL | let f = Bar();
| ^^^--
| |
| call expression requires function
|
help: `Bar` is a unit struct, and does not take parentheses to be constructed
|
LL - let f = Bar();
LL + let f = Bar;
|
2018-07-15 16:11:54 -05:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0618`.