]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/divergence.rs
Add 'compiler/rustc_smir/' from commit '9abcb5c7b574cf316eb23d3f469187bb86ba3019'
[rust.git] / src / test / ui / impl-trait / divergence.rs
1 // check-pass
2
3 fn foo() -> impl MyTrait {
4     panic!();
5     MyStruct
6 }
7
8 struct MyStruct;
9 trait MyTrait {}
10
11 impl MyTrait for MyStruct {}
12
13 fn main() {}