]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.rs
Auto merge of #97802 - Enselic:add-no_ignore_sigkill-feature, r=joshtriplett
[rust.git] / src / test / ui / resolve / unboxed-closure-sugar-nonexistent-trait.rs
1 fn f<F:Nonexist(isize) -> isize>(x: F) {}
2 //~^ ERROR cannot find trait `Nonexist`
3
4 type Typedef = isize;
5
6 fn g<F:Typedef(isize) -> isize>(x: F) {}
7 //~^ ERROR expected trait, found type alias `Typedef`
8
9 fn main() {}