]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/issue-53401.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / issue-53401.rs
1 // check-pass
2
3 pub const STATIC_TRAIT: &dyn Test = &();
4
5 fn main() {}
6
7 pub trait Test {
8     fn test() where Self: Sized {}
9 }
10
11 impl Test for () {}