2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2016-01-31 13:31:06 -06:00
|
|
|
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
struct Bar;
|
|
|
|
|
|
|
|
const BAZ: Bar = Bar;
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
2022-07-25 15:36:03 -05:00
|
|
|
struct Foo(#[allow(unused_tuple_struct_fields)] [Bar; 1]);
|
2016-01-31 13:31:06 -06:00
|
|
|
|
|
|
|
struct Biz;
|
|
|
|
|
|
|
|
impl Biz {
|
|
|
|
const BAZ: Foo = Foo([BAZ; 1]);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let foo = Biz::BAZ;
|
|
|
|
println!("{:?}", foo);
|
|
|
|
}
|