Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
suggest-assoc-fn-call-deref.rs
blob: e9856e808c506ce7c2e8fe66cb2d78e8cd16df3b [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
#![
allow
(
unused
)]
struct
Foo
<
T
>(
T
);
impl
<
T
>
Foo
<
T
>
{
fn
test
()
->
i32
{
1
}
}
fn
main
()
{
let
x
=
Box
::
new
(
Foo
(
1i32
));
x
.
test
();
//~^ ERROR no method named `test` found for struct `Box<Foo<i32>>` in the current scope
}