rust/tests/ui/consts/const-eval/issue-53401.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
146 B
Rust
Raw Normal View History

// check-pass
2018-08-26 15:21:20 -05:00
2019-05-28 13:46:13 -05:00
pub const STATIC_TRAIT: &dyn Test = &();
2018-08-26 15:21:20 -05:00
fn main() {}
pub trait Test {
fn test() where Self: Sized {}
}
impl Test for () {}