|
1 |
| -error[E0277]: `impl Sized` doesn't implement `Debug` |
| 1 | +error[E0277]: `impl Sized` doesn't implement `std::fmt::Debug` |
2 | 2 | --> $DIR/bound-suggestions.rs:9:22
|
3 | 3 | |
|
4 | 4 | LL | println!("{:?}", t);
|
5 |
| - | ^ `impl Sized` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
| 5 | + | ^ `impl Sized` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` |
6 | 6 | |
|
7 | 7 | = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
8 | 8 | help: consider further restricting this bound
|
9 | 9 | |
|
10 | 10 | LL | fn test_impl(t: impl Sized + std::fmt::Debug) {
|
11 | 11 | | +++++++++++++++++
|
12 | 12 |
|
13 |
| -error[E0277]: `T` doesn't implement `Debug` |
| 13 | +error[E0277]: `T` doesn't implement `std::fmt::Debug` |
14 | 14 | --> $DIR/bound-suggestions.rs:15:22
|
15 | 15 | |
|
16 | 16 | LL | println!("{:?}", t);
|
17 |
| - | ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
| 17 | + | ^ `T` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` |
18 | 18 | |
|
19 | 19 | = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
20 | 20 | help: consider restricting type parameter `T`
|
21 | 21 | |
|
22 | 22 | LL | fn test_no_bounds<T: std::fmt::Debug>(t: T) {
|
23 | 23 | | +++++++++++++++++
|
24 | 24 |
|
25 |
| -error[E0277]: `T` doesn't implement `Debug` |
| 25 | +error[E0277]: `T` doesn't implement `std::fmt::Debug` |
26 | 26 | --> $DIR/bound-suggestions.rs:21:22
|
27 | 27 | |
|
28 | 28 | LL | println!("{:?}", t);
|
29 |
| - | ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
| 29 | + | ^ `T` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` |
30 | 30 | |
|
31 | 31 | = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
32 | 32 | help: consider further restricting this bound
|
33 | 33 | |
|
34 | 34 | LL | fn test_one_bound<T: Sized + std::fmt::Debug>(t: T) {
|
35 | 35 | | +++++++++++++++++
|
36 | 36 |
|
37 |
| -error[E0277]: `Y` doesn't implement `Debug` |
| 37 | +error[E0277]: `Y` doesn't implement `std::fmt::Debug` |
38 | 38 | --> $DIR/bound-suggestions.rs:27:30
|
39 | 39 | |
|
40 | 40 | LL | println!("{:?} {:?}", x, y);
|
41 |
| - | ^ `Y` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
| 41 | + | ^ `Y` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` |
42 | 42 | |
|
43 | 43 | = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
44 | 44 | help: consider further restricting type parameter `Y`
|
45 | 45 | |
|
46 | 46 | LL | fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug, Y: std::fmt::Debug {
|
47 | 47 | | ~~~~~~~~~~~~~~~~~~~~
|
48 | 48 |
|
49 |
| -error[E0277]: `X` doesn't implement `Debug` |
| 49 | +error[E0277]: `X` doesn't implement `std::fmt::Debug` |
50 | 50 | --> $DIR/bound-suggestions.rs:33:22
|
51 | 51 | |
|
52 | 52 | LL | println!("{:?}", x);
|
53 |
| - | ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
| 53 | + | ^ `X` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` |
54 | 54 | |
|
55 | 55 | = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
56 | 56 | help: consider further restricting this bound
|
57 | 57 | |
|
58 | 58 | LL | fn test_one_bound_where<X>(x: X) where X: Sized + std::fmt::Debug {
|
59 | 59 | | +++++++++++++++++
|
60 | 60 |
|
61 |
| -error[E0277]: `X` doesn't implement `Debug` |
| 61 | +error[E0277]: `X` doesn't implement `std::fmt::Debug` |
62 | 62 | --> $DIR/bound-suggestions.rs:39:22
|
63 | 63 | |
|
64 | 64 | LL | println!("{:?}", x);
|
65 |
| - | ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
| 65 | + | ^ `X` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` |
66 | 66 | |
|
67 | 67 | = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
68 | 68 | help: consider further restricting this bound
|
|
0 commit comments