Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
resolve
/
block-with-trait-parent.rs
blob: bc86f94e921cb232ffa63a666363ea0732c438f9 [
file
] [
log
] [
blame
]
// check-pass
trait
Trait
{
fn
method
(&
self
)
{
// Items inside a block turn it into a module internally.
struct
S
;
impl
Trait
for
S
{}
// OK, `Trait` is in scope here from method resolution point of view.
S
.
method
();
}
}
fn
main
()
{}