Skip to content

Commit

Permalink
FIx typo in ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 21, 2024
1 parent 2bd2982 commit c008375
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/ui/same-from-type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub enum Error {
#[error("failed to open")]
OpenFile(#[from] std::io::Error),
#[error("failed to close")]
CloseFIle(#[from] std::io::Error),
CloseFile(#[from] std::io::Error),
}

fn main() {}
2 changes: 1 addition & 1 deletion tests/ui/same-from-type.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ error[E0119]: conflicting implementations of trait `From<std::io::Error>` for ty
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 comments on commit c008375

Please sign in to comment.