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
147 B
Rust
Raw Normal View History

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