Auto merge of #117825 - fee1-dead-contrib:corefx, r=petrochenkov · rust-lang/rust@e6dade9 (original) (raw)

3 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -219,6 +219,7 @@
219 219 #![feature(doc_cfg)]
220 220 #![feature(doc_cfg_hide)]
221 221 #![feature(doc_notable_trait)]
222 +#![feature(effects)]
222 223 #![feature(exhaustive_patterns)]
223 224 #![feature(extern_types)]
224 225 #![feature(fundamental)]
Original file line number Diff line number Diff line change
@@ -3,9 +3,13 @@
3 3 fn main() {
4 4 i8::checked_sub::<true>(42, 43);
5 5 //~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
6 + i8::checked_sub::<false>(42, 43);
7 +//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
6 8 }
7 9
8 10 const FOO: () = {
9 11 i8::checked_sub::<false>(42, 43);
10 12 //~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
13 + i8::checked_sub::<true>(42, 43);
14 +//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
11 15 };

| Original file line number | Diff line number | Diff line change | | | ---------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | | @@ -1,11 +1,19 @@ | | | | | 1 | 1 | error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied | | | 2 | | - --> $DIR/effect_param.rs:9:9 | | | | 2 | + --> $DIR/effect_param.rs:11:9 | | | | 3 | 3 | | | | | 4 | 4 | LL | i8::checked_sub::(42, 43); | | | 5 | 5 | | ^^^^^^^^^^^--------- help: remove these generics | | | 6 | 6 | | | | | 7 | 7 | | expected 0 generic arguments | | | 8 | 8 | | | | | 9 | +error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied | | | | | 10 | + --> $DIR/effect_param.rs:13:9 | | | | | 11 | + | | | | | | 12 | +LL | i8::checked_sub::(42, 43); | | | | | 13 | + | ^^^^^^^^^^^-------- help: remove these generics | | | | | 14 | + | | | | | | 15 | + | expected 0 generic arguments | | | | | 16 | + | | | | 9 | 17 | error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied | | | 10 | 18 | --> $DIR/effect_param.rs:4:9 | | | 11 | 19 | | | | | @@ -14,6 +22,14 @@ LL | i8::checked_sub::(42, 43); | | | | | 14 | 22 | | | | | 15 | 23 | | expected 0 generic arguments | | | 16 | 24 | | | | 17 | | -error: aborting due to 2 previous errors | | | | 25 | +error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied | | | | | 26 | + --> $DIR/effect_param.rs:6:9 | | | | | 27 | + | | | | | | 28 | +LL | i8::checked_sub::(42, 43); | | | | | 29 | + | ^^^^^^^^^^^--------- help: remove these generics | | | | | 30 | + | | | | | | 31 | + | expected 0 generic arguments | | | | | 32 | + | | | | | 33 | +error: aborting due to 4 previous errors | | | | 18 | 34 | | | | 19 | 35 | For more information about this error, try `rustc --explain E0107`. | |