]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/issue-35030.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / mismatched_types / issue-35030.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-35030.rs:9:14
3    |
4 LL | impl<bool> Parser<bool> for bool {
5    |      ---- this type parameter
6 LL |     fn parse(text: &str) -> Option<bool> {
7 LL |         Some(true)
8    |         ---- ^^^^ expected type parameter `bool`, found `bool`
9    |         |
10    |         arguments to this enum variant are incorrect
11    |
12    = note: expected type parameter `bool` (type parameter `bool`)
13                         found type `bool` (`bool`)
14 note: tuple variant defined here
15   --> $SRC_DIR/core/src/option.rs:LL:COL
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.