mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
18 lines
209 B
Rust
18 lines
209 B
Rust
trait Trait {
|
|
fn dummy(&self) { }
|
|
}
|
|
|
|
struct Foo<T:Trait> {
|
|
x: T,
|
|
}
|
|
|
|
fn main() {
|
|
let foo = Foo {
|
|
x: 3
|
|
//~^ ERROR E0277
|
|
};
|
|
|
|
let baz: Foo<usize> = loop { };
|
|
//~^ ERROR E0277
|
|
}
|