Sign in
◑
Theme
gnu
/
gcc.git
/
bb5c3bfcb28b423544676b30df5a3bc97e91c41f
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
method1.rs
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 }
}