mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Rollup merge of #148678 - xonx4l:EO412_replacement_with_EO425, r=Kivooeo
Merge E0412 into E0425 This PR merge E0412 into E0425 as both mean the same thing to users. This fixes https://github.com/rust-lang/rust/issues/148558.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
A used type name is not in scope.
|
||||
#### Note: this error code is no longer emitted by the compiler.
|
||||
|
||||
Erroneous code examples:
|
||||
|
||||
```compile_fail,E0412
|
||||
```compile_fail,E0425
|
||||
impl Something {} // error: type name `Something` is not in scope
|
||||
|
||||
// or:
|
||||
@@ -42,7 +42,7 @@ module. To fix this, you can follow the suggestion and use File directly or
|
||||
`use super::File;` which will import the types from the parent namespace. An
|
||||
example that causes this error is below:
|
||||
|
||||
```compile_fail,E0412
|
||||
```compile_fail,E0425
|
||||
use std::fs::File;
|
||||
|
||||
mod foo {
|
||||
|
||||
Reference in New Issue
Block a user