fork/rust

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

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

master
1.9 KiB55 linesraw
1error[E0277]: `T` is not a tuple
2  --> $DIR/builtin-fail.rs:8:23
3   |
4LL |     assert_is_tuple::<T>();
5   |                       ^ the trait `Tuple` is not implemented for `T`
6   |
7note: required by a bound in `assert_is_tuple`
8  --> $DIR/builtin-fail.rs:3:23
9   |
10LL | fn assert_is_tuple<T: std::marker::Tuple + ?Sized>() {}
11   |                       ^^^^^^^^^^^^^^^^^^ required by this bound in `assert_is_tuple`
12help: consider restricting type parameter `T`
13   |
14LL | fn from_param_env<T: std::marker::Tuple>() {
15   |                    ++++++++++++++++++++
16
17error[E0277]: `i32` is not a tuple
18  --> $DIR/builtin-fail.rs:13:23
19   |
20LL |     assert_is_tuple::<i32>();
21   |                       ^^^ the trait `Tuple` is not implemented for `i32`
22   |
23note: required by a bound in `assert_is_tuple`
24  --> $DIR/builtin-fail.rs:3:23
25   |
26LL | fn assert_is_tuple<T: std::marker::Tuple + ?Sized>() {}
27   |                       ^^^^^^^^^^^^^^^^^^ required by this bound in `assert_is_tuple`
28
29error[E0277]: `i32` is not a tuple
30  --> $DIR/builtin-fail.rs:15:24
31   |
32LL |     assert_is_tuple::<(i32)>();
33   |                        ^^^ the trait `Tuple` is not implemented for `i32`
34   |
35note: required by a bound in `assert_is_tuple`
36  --> $DIR/builtin-fail.rs:3:23
37   |
38LL | fn assert_is_tuple<T: std::marker::Tuple + ?Sized>() {}
39   |                       ^^^^^^^^^^^^^^^^^^ required by this bound in `assert_is_tuple`
40
41error[E0277]: `TupleStruct` is not a tuple
42  --> $DIR/builtin-fail.rs:17:23
43   |
44LL |     assert_is_tuple::<TupleStruct>();
45   |                       ^^^^^^^^^^^ the trait `Tuple` is not implemented for `TupleStruct`
46   |
47note: required by a bound in `assert_is_tuple`
48  --> $DIR/builtin-fail.rs:3:23
49   |
50LL | fn assert_is_tuple<T: std::marker::Tuple + ?Sized>() {}
51   |                       ^^^^^^^^^^^^^^^^^^ required by this bound in `assert_is_tuple`
52
53error: aborting due to 4 previous errors
54
55For more information about this error, try `rustc --explain E0277`.