]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / declared_but_not_defined_in_scope.rs
CommitLineData
94222f64 1#![feature(type_alias_impl_trait)]
416331ca
XL
2
3fn main() {}
4
5mod 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
10fn bomp() -> boo::Boo {
11 ""
1b1a35ee 12 //~^ mismatched types
416331ca 13}