blob: e848c4c2d346016dc49a3b7a07fb63a8927a40ea [file]
#![feature(no_core)]
#![no_core]
struct Foo(i32);
impl Foo {
fn test() {}
}
pub fn main() {
let a;
a = Foo(123);
a.test();
// { dg-error "no method named .test. found in the current scope" "" { target *-*-* } .-1 }
}