From c0083752681756b7ad1aae2e6a15717d3d27118d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 21 Dec 2024 10:20:21 -0800 Subject: [PATCH] FIx typo in ui test --- tests/ui/same-from-type.rs | 2 +- tests/ui/same-from-type.stderr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ui/same-from-type.rs b/tests/ui/same-from-type.rs index bc32b07..0ebdf45 100644 --- a/tests/ui/same-from-type.rs +++ b/tests/ui/same-from-type.rs @@ -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() {} diff --git a/tests/ui/same-from-type.stderr b/tests/ui/same-from-type.stderr index 92944d2..a655163 100644 --- a/tests/ui/same-from-type.stderr +++ b/tests/ui/same-from-type.stderr @@ -4,5 +4,5 @@ error[E0119]: conflicting implementations of trait `From` 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`