☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2499.rs
☽
☼
gcc/testsuite/rust/compile/issue-2499.rs
code
plain
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 }