rust/tests/ui/const-generics/broken-mir-1.rs

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

14 lines
158 B
Rust
Raw Normal View History

2019-05-20 17:03:38 -05:00
//@ run-pass
pub trait Foo {
fn foo(&self);
}
impl<T, const N: usize> Foo for [T; N] {
fn foo(&self) {
let _ = &self;
}
}
fn main() {}