summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/effect_param.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/consts/effect_param.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/consts/effect_param.rs b/tests/ui/consts/effect_param.rs
index f11ec739f..bfe0a5190 100644
--- a/tests/ui/consts/effect_param.rs
+++ b/tests/ui/consts/effect_param.rs
@@ -3,9 +3,13 @@
fn main() {
i8::checked_sub::<true>(42, 43);
//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
+ i8::checked_sub::<false>(42, 43);
+ //~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
}
const FOO: () = {
i8::checked_sub::<false>(42, 43);
//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
+ i8::checked_sub::<true>(42, 43);
+ //~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
};