]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/issue-53401.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[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 () {}