]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/divergence.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / 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() {}