]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/issue-101465.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / suggestions / issue-101465.rs
CommitLineData
f2b60f7d
FG
1#![feature(trait_alias)]
2
3struct B;
4struct C;
5
6trait Tr {}
7
8impl Tr for B {}
9impl Tr for C {}
10
11trait Tr2<S> = Into<S>;
12
13fn foo2<T: Tr2<()>>() {}
14
15fn foo() -> impl Tr {
16 let x = foo2::<_>();
17
18 match true {
19 true => B,
20 false => C,
21 //~^ `match` arms have incompatible types
22 }
23}
24
25fn main() {}