]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21701.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / ui / issues / issue-21701.rs
1 fn foo<U>(t: U) {
2     let y = t();
3 //~^ ERROR: expected function, found `U`
4 }
5
6 struct Bar;
7
8 pub fn some_func() {
9     let f = Bar();
10 //~^ ERROR: expected function, found `Bar`
11 }
12
13 fn main() {
14     foo(|| { 1 });
15 }