]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/defining-use-submodule.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / type-alias-impl-trait / defining-use-submodule.rs
1 // check-pass
2
3 #![feature(type_alias_impl_trait)]
4 #![allow(dead_code)]
5
6 // test that the type alias impl trait defining use is in a submodule
7
8 fn main() {}
9
10 type Foo = impl std::fmt::Display;
11 type Bar = impl std::fmt::Display;
12
13 mod foo {
14     pub fn foo() -> super::Foo {
15         "foo"
16     }
17
18     pub mod bar {
19         pub fn bar() -> crate::Bar {
20             1
21         }
22     }
23 }