rust/tests/ui/traits/bound/on-structs-and-enums-static.rs
2023-01-11 09:32:08 +00:00

16 lines
150 B
Rust

trait Trait {
fn dummy(&self) { }
}
struct Foo<T:Trait> {
x: T,
}
static X: Foo<usize> = Foo {
//~^ ERROR E0277
x: 1,
};
fn main() {
}