error[E0618]: expected function, found `U`
- --> $DIR/issue-21701.rs:12:13
+ --> $DIR/issue-21701.rs:2:13
|
LL | fn foo<U>(t: U) {
| - `U` defined here
| call expression requires function
error[E0618]: expected function, found `Bar`
- --> $DIR/issue-21701.rs:19:13
+ --> $DIR/issue-21701.rs:9:13
|
LL | struct Bar;
| ----------- `Bar` defined here