]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/no_revealing_outside_defining_module.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / type-alias-impl-trait / no_revealing_outside_defining_module.rs
CommitLineData
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 6fn main() {}
94b46f34 7
8faf50e0 8mod 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
17fn bomp2() {
18 let _: &str = bomp(); //~ ERROR mismatched types
94b46f34 19}
0531ce1d 20
8faf50e0
XL
21fn bomp() -> boo::Boo {
22 "" //~ ERROR mismatched types
23}
24
25fn bomp_loop() -> boo::Boo {
26 loop {}
27}