Closed
Description
Code:
struct S { now_req: bool }
trait T { }
impl T for S {}
fn main() {
let x = @S as @T;
println("Hello World");
}
rustc output:
/tmp/mt.rs:5:13: 5:14 error: unresolved name `S`.
/tmp/mt.rs:5 let x = @S as @T;
^
error: aborting due to previous error
We can do better (in terms of looking S
up in the struct namespace and informing the user that they need to provide the { ... }
portion).