Reenable effects in libcore
This commit is contained in:
parent
2c1b65ee14
commit
da28b30896
@ -219,6 +219,7 @@
|
||||
#![feature(doc_cfg)]
|
||||
#![feature(doc_cfg_hide)]
|
||||
#![feature(doc_notable_trait)]
|
||||
#![feature(effects)]
|
||||
#![feature(exhaustive_patterns)]
|
||||
#![feature(extern_types)]
|
||||
#![feature(fundamental)]
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -1,11 +1,19 @@
|
||||
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
|
||||
| |
|
||||
| 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
|
||||
|
|
||||
@ -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`.
|
||||
|
Loading…
Reference in New Issue
Block a user