]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21701.stderr
Rollup merge of #53218 - weiznich:feature/option_ref_into, r=KodrAus
[rust.git] / src / test / ui / issues / issue-21701.stderr
1 error[E0618]: expected function, found `U`
2   --> $DIR/issue-21701.rs:12:13
3    |
4 LL | fn foo<U>(t: U) {
5    |           - `U` defined here
6 LL |     let y = t();
7    |             ^^^ not a function
8
9 error[E0618]: expected function, found `Bar`
10   --> $DIR/issue-21701.rs:19:13
11    |
12 LL | struct Bar;
13    | ----------- `Bar` defined here
14 ...
15 LL |     let f = Bar();
16    |             ^^^^^ not a function
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0618`.