blob: 6f4fc201b81f0814503f0366d52b20e7715e3b12 [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
pub trait Foo {
fn foo();
}
impl Foo for u16 {
fn foo() {
// { dg-warning "infinite recursion detected" "" { target *-*-* } .-1 }
<u16 as Foo>::foo()
}
}
fn main() {
<u16>::foo();
}