]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-104513-ice.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / typeck / issue-104513-ice.rs
1 struct S;
2 fn f() {
3     let _: S<impl Oops> = S; //~ ERROR cannot find trait `Oops` in this scope
4     //~^ ERROR `impl Trait` only allowed in function and inherent method return types
5 }
6 fn main() {}