☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2136-2.rs
☽
☼
gcc/testsuite/rust/compile/issue-2136-2.rs
code
plain
raw
1
#[lang = "sized"]
2
pub trait Sized {}
3
4
struct S;
5
6
impl S {
7
fn foo(self) {
8
// { dg-warning "infinite recursion detected" "" { target *-*-* } .-1 }
9
self.foo();
10
}
11
}
12
13
fn main() {
14
let a = S;
15
a.foo();
16
}