2018-07-15 16:11:54 -05:00
|
|
|
error[E0618]: expected function, found `U`
|
|
|
|
--> $DIR/issue-21701.rs:12:13
|
|
|
|
|
|
|
|
|
LL | fn foo<U>(t: U) {
|
|
|
|
| - `U` defined here
|
|
|
|
LL | let y = t();
|
2018-11-10 22:46:05 -06:00
|
|
|
| ^--
|
|
|
|
| |
|
|
|
|
| call expression requires function
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error[E0618]: expected function, found `Bar`
|
|
|
|
--> $DIR/issue-21701.rs:19:13
|
|
|
|
|
|
|
|
|
LL | struct Bar;
|
|
|
|
| ----------- `Bar` defined here
|
|
|
|
...
|
|
|
|
LL | let f = Bar();
|
2018-11-10 22:46:05 -06:00
|
|
|
| ^^^--
|
|
|
|
| |
|
|
|
|
| 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`.
|