blob: d358bf90b368b1acb523cd38983552fe5674c83a [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
struct Foo;
struct Bar;
impl Foo for Bar {}
// { dg-error "Expected a trait found .Foo. .E0404." "" { target *-*-* } .-1 }
fn baz<T: Foo>(t: T) {}
// { dg-error "Expected a trait found .Foo. .E0404." "" { target *-*-* } .-1 }