blob: 60ba343bb0a5c272216fd7fded1024239e86918d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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
}
|