blob: 92e389a938ab336be556bc4bb47a180d027a0a8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// check-pass
#![deny(dead_code)]
enum Foo {
Bar,
}
fn main() {
let p = [0; 0];
p.bar();
}
trait Bar {
fn bar(&self) -> usize {
3
}
}
impl Bar for [u32; Foo::Bar as usize] {}
|