Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
resolve
/
issue-3907.rs
blob: fd08c360d3627abae68190a2bb0e0a39b69db1c8 [
file
] [
log
] [
blame
] [
edit
]
//@ aux-build:issue-3907.rs
extern
crate issue_3907
;
type
Foo
=
dyn issue_3907
::
Foo
;
struct
S
{
name
:
isize
}
impl
Foo
for
S
{
//~ ERROR expected trait, found type alias `Foo`
fn
bar
()
{
}
}
fn
main
()
{
let
s
=
S
{
name
:
0
};
s
.
bar
();
}