]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21701.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-21701.stderr
1 error[E0618]: expected function, found `U`
2   --> $DIR/issue-21701.rs:2:13
3    |
4 LL | fn foo<U>(t: U) {
5    |           - `U` defined here
6 LL |     let y = t();
7    |             ^--
8    |             |
9    |             call expression requires function
10
11 error[E0618]: expected function, found `Bar`
12   --> $DIR/issue-21701.rs:9:13
13    |
14 LL | struct Bar;
15    | ----------- `Bar` defined here
16 ...
17 LL |     let f = Bar();
18    |             ^^^--
19    |             |
20    |             call expression requires function
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0618`.