@@ -8,8 +8,8 @@ LL | println!("{:?}", t);
88 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
99help: consider further restricting this bound
1010 |
11- LL | fn test_impl(t: impl Sized + Debug) {
12- | ^^^^^^^
11+ LL | fn test_impl(t: impl Sized + std::fmt:: Debug) {
12+ | ^^^^^^^^^^^^^^^^^
1313
1414error[E0277]: `T` doesn't implement `Debug`
1515 --> $DIR/bound-suggestions.rs:15:22
@@ -21,8 +21,8 @@ LL | println!("{:?}", t);
2121 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2222help: consider restricting type parameter `T`
2323 |
24- LL | fn test_no_bounds<T: Debug>(t: T) {
25- | ^^^^^^^
24+ LL | fn test_no_bounds<T: std::fmt:: Debug>(t: T) {
25+ | ^^^^^^^^^^^^^^^^^
2626
2727error[E0277]: `T` doesn't implement `Debug`
2828 --> $DIR/bound-suggestions.rs:21:22
@@ -34,8 +34,8 @@ LL | println!("{:?}", t);
3434 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
3535help: consider further restricting this bound
3636 |
37- LL | fn test_one_bound<T: Sized + Debug>(t: T) {
38- | ^^^^^^^
37+ LL | fn test_one_bound<T: Sized + std::fmt:: Debug>(t: T) {
38+ | ^^^^^^^^^^^^^^^^^
3939
4040error[E0277]: `Y` doesn't implement `Debug`
4141 --> $DIR/bound-suggestions.rs:27:30
@@ -47,8 +47,8 @@ LL | println!("{:?} {:?}", x, y);
4747 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4848help: consider further restricting type parameter `Y`
4949 |
50- LL | fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug, Y: Debug {
51- | ^^^^^^^^^^
50+ LL | fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug, Y: std::fmt:: Debug {
51+ | ^^^^^^^^^^^^^^^^^^^^
5252
5353error[E0277]: `X` doesn't implement `Debug`
5454 --> $DIR/bound-suggestions.rs:33:22
@@ -60,8 +60,8 @@ LL | println!("{:?}", x);
6060 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
6161help: consider further restricting this bound
6262 |
63- LL | fn test_one_bound_where<X>(x: X) where X: Sized + Debug {
64- | ^^^^^^^
63+ LL | fn test_one_bound_where<X>(x: X) where X: Sized + std::fmt:: Debug {
64+ | ^^^^^^^^^^^^^^^^^
6565
6666error[E0277]: `X` doesn't implement `Debug`
6767 --> $DIR/bound-suggestions.rs:39:22
@@ -73,8 +73,8 @@ LL | println!("{:?}", x);
7373 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
7474help: consider further restricting type parameter `X`
7575 |
76- LL | fn test_many_bounds_where<X>(x: X) where X: Sized, X: Sized, X: Debug {
77- | ^^^^^^^^^^
76+ LL | fn test_many_bounds_where<X>(x: X) where X: Sized, X: Sized, X: std::fmt:: Debug {
77+ | ^^^^^^^^^^^^^^^^^^^^
7878
7979error[E0277]: the size for values of type `Self` cannot be known at compilation time
8080 --> $DIR/bound-suggestions.rs:44:46
0 commit comments