diff options
Diffstat (limited to 'src/test/ui/mismatched_types/issue-35030.rs')
-rw-r--r-- | src/test/ui/mismatched_types/issue-35030.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/mismatched_types/issue-35030.rs b/src/test/ui/mismatched_types/issue-35030.rs deleted file mode 100644 index 91ea7ea80..000000000 --- a/src/test/ui/mismatched_types/issue-35030.rs +++ /dev/null @@ -1,15 +0,0 @@ -#![allow(non_camel_case_types)] - -trait Parser<T> { - fn parse(text: &str) -> Option<T>; -} - -impl<bool> Parser<bool> for bool { - fn parse(text: &str) -> Option<bool> { - Some(true) //~ ERROR mismatched types - } -} - -fn main() { - println!("{}", bool::parse("ok").unwrap_or(false)); -} |