mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
16 lines
150 B
Rust
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() {
|
|
}
|