blob: 2b3128cd853b475d05473a70c142b730137ff4e9 [file] [log] [blame]
struct MyStruct;
impl MyStruct {
pub fn do_something(*self) {}
// { dg-error "cannot pass .self. by raw pointer" "" { target *-*-* } .-1 }
// { dg-error "failed to parse inherent impl item in inherent impl" "" { target *-*-* } .-2 }
}