Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
self_const_ptr.rs
blob: 51e339eaa5e298a9ae6ac66e9c382e52734677e2 [
file
] [
log
] [
blame
]
struct
MyStruct
;
impl
MyStruct
{
pub
fn
do_something
(*
const
self
)
{}
// { dg-error "cannot pass .self. by raw pointer" "" { target *-*-* } .-1 }
// { dg-error "failed to parse inherent impl item in inherent impl" "" { target *-*-* } .-2 }
}