mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
15 lines
166 B
Rust
15 lines
166 B
Rust
trait Trait {
|
|
fn dummy(&self) { }
|
|
}
|
|
|
|
struct Foo<T:Trait> {
|
|
x: T,
|
|
}
|
|
|
|
static X: Foo<usize> = Foo { //~ ERROR E0277
|
|
x: 1, //~ ERROR: E0277
|
|
};
|
|
|
|
fn main() {
|
|
}
|