]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/issue-35030.stderr
Auto merge of #106627 - Ezrashaw:no-e0711-without-staged-api, r=Mark-Simulacrum
[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 help: the type constructed contains `bool` due to the type of the argument passed
15   --> $DIR/issue-35030.rs:9:9
16    |
17 LL |         Some(true)
18    |         ^^^^^----^
19    |              |
20    |              this argument influences the type of `Some`
21 note: tuple variant defined here
22   --> $SRC_DIR/core/src/option.rs:LL:COL
23
24 error: aborting due to previous error
25
26 For more information about this error, try `rustc --explain E0308`.