summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mismatched_types/issue-35030.stderr
blob: 5ea9bcfc122cb31df5cd24b3c9467a8672d01adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0308]: mismatched types
  --> $DIR/issue-35030.rs:9:14
   |
LL | impl<bool> Parser<bool> for bool {
   |      ---- this type parameter
LL |     fn parse(text: &str) -> Option<bool> {
LL |         Some(true)
   |         ---- ^^^^ expected type parameter `bool`, found `bool`
   |         |
   |         arguments to this enum variant are incorrect
   |
   = note: expected type parameter `bool` (type parameter `bool`)
                        found type `bool` (`bool`)
note: tuple variant defined here
  --> $SRC_DIR/core/src/option.rs:LL:COL
   |
LL |     Some(#[stable(feature = "rust1", since = "1.0.0")] T),
   |     ^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.