rust/src/test/ui/issues/issue-21701.stderr

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

25 lines
615 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 `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;
2022-02-13 09:27:59 -06:00
| ---------- `Bar` defined here
2018-07-15 16:11:54 -05:00
...
LL | let f = Bar();
| ^^^--
| |
| call expression requires function
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`.