summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/effect_param.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/consts/effect_param.stderr20
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/ui/consts/effect_param.stderr b/tests/ui/consts/effect_param.stderr
index f8c4bfc02..dba5d49b7 100644
--- a/tests/ui/consts/effect_param.stderr
+++ b/tests/ui/consts/effect_param.stderr
@@ -1,5 +1,5 @@
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
- --> $DIR/effect_param.rs:9:9
+ --> $DIR/effect_param.rs:11:9
|
LL | i8::checked_sub::<false>(42, 43);
| ^^^^^^^^^^^--------- help: remove these generics
@@ -7,6 +7,14 @@ LL | i8::checked_sub::<false>(42, 43);
| expected 0 generic arguments
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
+ --> $DIR/effect_param.rs:13:9
+ |
+LL | i8::checked_sub::<true>(42, 43);
+ | ^^^^^^^^^^^-------- help: remove these generics
+ | |
+ | expected 0 generic arguments
+
+error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
--> $DIR/effect_param.rs:4:9
|
LL | i8::checked_sub::<true>(42, 43);
@@ -14,6 +22,14 @@ LL | i8::checked_sub::<true>(42, 43);
| |
| expected 0 generic arguments
-error: aborting due to 2 previous errors
+error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
+ --> $DIR/effect_param.rs:6:9
+ |
+LL | i8::checked_sub::<false>(42, 43);
+ | ^^^^^^^^^^^--------- help: remove these generics
+ | |
+ | expected 0 generic arguments
+
+error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0107`.