]> git.proxmox.com Git - rustc.git/blame - src/test/ui/resolve/block-with-trait-parent.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / resolve / block-with-trait-parent.rs
CommitLineData
e1599b0c
XL
1// check-pass
2
3trait Trait {
4 fn method(&self) {
5 // Items inside a block turn it into a module internally.
6 struct S;
7 impl Trait for S {}
8
9 // OK, `Trait` is in scope here from method resolution point of view.
10 S.method();
11 }
12}
13
14fn main() {}