]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/different_defining_uses.rs
Rollup merge of #106716 - c410-f3r:rfc-2397-1, r=davidtwco
[rust.git] / tests / ui / type-alias-impl-trait / different_defining_uses.rs
1 #![feature(type_alias_impl_trait)]
2
3 fn main() {}
4
5 // two definitions with different types
6 type Foo = impl std::fmt::Debug;
7
8 fn foo() -> Foo {
9     ""
10 }
11
12 fn bar() -> Foo {
13     42i32
14     //~^ ERROR concrete type differs from previous
15 }