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