]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-3021-c.rs
Rollup merge of #97812 - TaKO8Ki:suggest-to-swap-struct-and-trait, r=estebank
[rust.git] / src / test / ui / resolve / issue-3021-c.rs
1 fn siphash<T>() {
2
3     trait U {
4         fn g(&self, x: T) -> T;  //~ ERROR can't use generic parameters from outer function
5         //~^ ERROR can't use generic parameters from outer function
6     }
7 }
8
9 fn main() {}