Sign in
◑
Theme
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
issues
/
2136-2.rs
blob: 0ec066cf8c5f465a630bbb2dd0f5498ac5af74ba [
file
]
#![
feature
(
no_core
)]
#![
no_core
]
#![
feature
(
lang_items
)]
#[
lang
=
"sized"
]
pub
trait
Sized
{}
struct
S
;
impl
S
{
fn
foo
(
self
)
{
// { dg-warning "infinite recursion detected" "" { target *-*-* } .-1 }
self
.
foo
();
}
}
fn
main
()
{
let
a
=
S
;
a
.
foo
();
}