Skip to content

Commit c008375

Browse files
committed
FIx typo in ui test
1 parent 2bd2982 commit c008375

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/same-from-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub enum Error {
55
#[error("failed to open")]
66
OpenFile(#[from] std::io::Error),
77
#[error("failed to close")]
8-
CloseFIle(#[from] std::io::Error),
8+
CloseFile(#[from] std::io::Error),
99
}
1010

1111
fn main() {}

tests/ui/same-from-type.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error[E0119]: conflicting implementations of trait `From<std::io::Error>` for ty
44
6 | OpenFile(#[from] std::io::Error),
55
| ------- first implementation here
66
7 | #[error("failed to close")]
7-
8 | CloseFIle(#[from] std::io::Error),
7+
8 | CloseFile(#[from] std::io::Error),
88
| ^^^^^^^ conflicting implementation for `Error`

0 commit comments

Comments
 (0)