]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/static-const-types.rs
Rollup merge of #88375 - joshlf:patch-3, r=dtolnay
[rust.git] / src / test / ui / type-alias-impl-trait / static-const-types.rs
1 #![feature(type_alias_impl_trait)]
2 #![allow(dead_code)]
3
4 // FIXME: This should compile, but it currently doesn't
5
6 use std::fmt::Debug;
7
8 type Foo = impl Debug; //~ ERROR could not find defining uses
9
10 static FOO1: Foo = 22_u32; //~ ERROR mismatched types
11 const FOO2: Foo = 22_u32; //~ ERROR mismatched types
12
13 fn main() {}