blob: a8e7b8d4b732a5cc05be34975ad7260e4f9fd2d1 [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
struct Bar;
trait Foo {
const N: u32;
fn M();
}
impl Foo for Bar {
// { dg-error "missing N, M in implementation of trait .Foo." "" { target *-*-* } .-1 }
fn N() {}
// { dg-error "method .N. is not a member of trait .Foo." "" { target *-*-* } .-1 }
}