summaryrefslogtreecommitdiffstats
path: root/tests/ui/mismatched_types/issue-35030.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/mismatched_types/issue-35030.stderr26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ui/mismatched_types/issue-35030.stderr b/tests/ui/mismatched_types/issue-35030.stderr
new file mode 100644
index 000000000..de4e067fe
--- /dev/null
+++ b/tests/ui/mismatched_types/issue-35030.stderr
@@ -0,0 +1,26 @@
+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`)
+help: the type constructed contains `bool` due to the type of the argument passed
+ --> $DIR/issue-35030.rs:9:9
+ |
+LL | Some(true)
+ | ^^^^^----^
+ | |
+ | this argument influences the type of `Some`
+note: tuple variant defined here
+ --> $SRC_DIR/core/src/option.rs:LL:COL
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.