blob: d734893dd7c96273e160550ac6f09ade3b2a5901 [file] [log] [blame] [edit]
trait Trait {
fn dummy(&self) { }
}
struct Foo<T:Trait> {
x: T,
}
static X: Foo<usize> = Foo {
//~^ ERROR E0277
//~| ERROR E0277
x: 1, //~ ERROR: E0277
};
fn main() {
}