]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/bound/on-structs-and-enums-static.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / ui / traits / bound / on-structs-and-enums-static.rs
1 trait Trait {
2     fn dummy(&self) { }
3 }
4
5 struct Foo<T:Trait> {
6     x: T,
7 }
8
9 static X: Foo<usize> = Foo {
10 //~^ ERROR E0277
11     x: 1,
12 };
13
14 fn main() {
15 }