☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2139.rs
☽
☼
gcc/testsuite/rust/compile/issue-2139.rs
code
plain
raw
1
#[lang = "sized"]
2
pub trait Sized {}
3
4
pub trait Foo {
5
fn foo();
6
}
7
8
impl Foo for u16 {
9
fn foo() {
10
<u16 as Foo>::foo()
11
}
12
}
13
14
fn main() {
15
let a: u16 = 123;
16
a.foo();
17
// { dg-error "no method named .foo. found in the current scope" "" { target *-*-* } .-1 }
18
}