fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.4 KiB34 linesraw
1error[E0059]: type parameter to bare `FnMut` trait must be a tuple
2  --> $DIR/overloaded-calls-nontuple.rs:10:6
3   |
4LL | impl FnMut<isize> for S {
5   |      ^^^^^^^^^^^^ the trait `Tuple` is not implemented for `isize`
6   |
7note: required by a bound in `FnMut`
8  --> $SRC_DIR/core/src/ops/function.rs:LL:COL
9
10error[E0059]: type parameter to bare `FnOnce` trait must be a tuple
11  --> $DIR/overloaded-calls-nontuple.rs:18:6
12   |
13LL | impl FnOnce<isize> for S {
14   |      ^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `isize`
15   |
16note: required by a bound in `FnOnce`
17  --> $SRC_DIR/core/src/ops/function.rs:LL:COL
18
19error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument
20  --> $DIR/overloaded-calls-nontuple.rs:12:5
21   |
22LL |     extern "rust-call" fn call_mut(&mut self, z: isize) -> isize {
23   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `isize`
24
25error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument
26  --> $DIR/overloaded-calls-nontuple.rs:21:5
27   |
28LL |     extern "rust-call" fn call_once(mut self, z: isize) -> isize {
29   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `isize`
30
31error: aborting due to 4 previous errors
32
33Some errors have detailed explanations: E0059, E0277.
34For more information about an error, try `rustc --explain E0059`.