summary refs log tree commit diff
path: root/src/test/ui/issues/issue-21701.stderr
blob: 77bb3802d8603d9498e3c33ac5900188209a323f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error[E0618]: expected function, found `U`
  --> $DIR/issue-21701.rs:2:13
   |
LL | fn foo<U>(t: U) {
   |           - `U` defined here
LL |     let y = t();
   |             ^--
   |             |
   |             call expression requires function

error[E0618]: expected function, found `Bar`
  --> $DIR/issue-21701.rs:9:13
   |
LL | struct Bar;
   | ----------- `Bar` defined here
...
LL |     let f = Bar();
   |             ^^^--
   |             |
   |             call expression requires function

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0618`.