We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bd2982 commit c008375Copy full SHA for c008375
tests/ui/same-from-type.rs
@@ -5,7 +5,7 @@ pub enum Error {
5
#[error("failed to open")]
6
OpenFile(#[from] std::io::Error),
7
#[error("failed to close")]
8
- CloseFIle(#[from] std::io::Error),
+ CloseFile(#[from] std::io::Error),
9
}
10
11
fn main() {}
tests/ui/same-from-type.stderr
@@ -4,5 +4,5 @@ error[E0119]: conflicting implementations of trait `From<std::io::Error>` for ty
4
6 | OpenFile(#[from] std::io::Error),
| ------- first implementation here
7 | #[error("failed to close")]
-8 | CloseFIle(#[from] std::io::Error),
+8 | CloseFile(#[from] std::io::Error),
| ^^^^^^^ conflicting implementation for `Error`
0 commit comments