]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bound/on-structs-and-enums-locals.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / traits / bound / on-structs-and-enums-locals.rs
1 trait Trait {
2     fn dummy(&self) { }
3 }
4
5 struct Foo<T:Trait> {
6     x: T,
7 }
8
9 fn main() {
10     let foo = Foo {
11     //~^ ERROR E0277
12         x: 3
13     };
14
15     let baz: Foo<usize> = loop { };
16     //~^ ERROR E0277
17 }