1 A used type name is not in scope.
3 Erroneous code examples:
6 impl Something {} // error: type name `Something` is not in scope
11 fn bar(N); // error: type name `N` is not in scope
16 fn foo(x: T) {} // type name `T` is not in scope
19 To fix this error, please verify you didn't misspell the type name, you did
20 declare it or imported it into the scope. Examples:
25 impl Something {} // ok!
32 fn bar(_: Self::N); // ok!
37 fn foo<T>(x: T) {} // ok!
40 Another case that causes this error is when a type is imported into a parent
41 module. To fix this, you can follow the suggestion and use File directly or
42 `use super::File;` which will import the types from the parent namespace. An
43 example that causes this error is below:
49 fn some_function(f: File) {}
63 # fn main() {} // don't insert it for us; that'll break imports