]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / test / ui / type-alias-impl-trait / declared_but_not_defined_in_scope.rs
1 #![feature(type_alias_impl_trait)]
2
3 fn main() {}
4
5 mod boo {
6     // declared in module but not defined inside of it
7     pub type Boo = impl ::std::fmt::Debug; //~ ERROR could not find defining uses
8 }
9
10 fn bomp() -> boo::Boo {
11     ""
12     //~^ mismatched types
13 }