☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2136-1.rs
☽
☼
gcc/testsuite/rust/compile/issue-2136-1.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
// { dg-warning "infinite recursion detected" "" { target *-*-* } .-1 }
11
<u16 as Foo>::foo()
12
}
13
}
14
15
fn main() {
16
<u16>::foo();
17
}