]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | // revisions: min_tait full_tait |
2 | #![feature(min_type_alias_impl_trait)] | |
3 | #![cfg_attr(full_tait, feature(type_alias_impl_trait))] | |
4 | //[full_tait]~^ WARN incomplete | |
94b46f34 | 5 | |
8faf50e0 | 6 | fn main() {} |
94b46f34 | 7 | |
8faf50e0 | 8 | mod boo { |
416331ca | 9 | pub type Boo = impl ::std::fmt::Debug; |
8faf50e0 XL |
10 | fn bomp() -> Boo { |
11 | "" | |
12 | } | |
13 | } | |
94b46f34 | 14 | |
dc9dc135 | 15 | // We don't actually know the type here. |
94b46f34 | 16 | |
8faf50e0 XL |
17 | fn bomp2() { |
18 | let _: &str = bomp(); //~ ERROR mismatched types | |
94b46f34 | 19 | } |
0531ce1d | 20 | |
8faf50e0 XL |
21 | fn bomp() -> boo::Boo { |
22 | "" //~ ERROR mismatched types | |
23 | } | |
24 | ||
25 | fn bomp_loop() -> boo::Boo { | |
26 | loop {} | |
27 | } |