Debian Codegraph @

gcc/testsuite/rust/compile/issue-2499.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 struct Foo;
5 struct Bar;
6
7 impl Foo for Bar {}
8 // { dg-error "Expected a trait found .Foo. .E0404." "" { target *-*-* } .-1 }
9
10 fn baz<T: Foo>(t: T) {}
11 // { dg-error "Expected a trait found .Foo. .E0404." "" { target *-*-* } .-1 }