]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/divergence.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[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() {}