blob: fbb8db0952f046d37af52a04b32b41efbaf4eead [file]
#![feature(min_generic_const_args, adt_const_params)]
#[derive(Eq, PartialEq, std::marker::ConstParamTy)]
struct Foo;
fn foo<const N: Foo>() {}
fn main() {
foo::<{ Foo { field: const { 1 } } }>();
//~^ ERROR struct `Foo` has no field named `field` [E0560]
}