@@ -8,8 +8,8 @@ LL | println!("{:?}", t);
8
8
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
9
9
help: consider further restricting this bound
10
10
|
11
- LL | fn test_impl(t: impl Sized + Debug) {
12
- | ^^^^^^^
11
+ LL | fn test_impl(t: impl Sized + std::fmt:: Debug) {
12
+ | ^^^^^^^^^^^^^^^^^
13
13
14
14
error[E0277]: `T` doesn't implement `Debug`
15
15
--> $DIR/bound-suggestions.rs:15:22
@@ -21,8 +21,8 @@ LL | println!("{:?}", t);
21
21
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
22
22
help: consider restricting type parameter `T`
23
23
|
24
- LL | fn test_no_bounds<T: Debug>(t: T) {
25
- | ^^^^^^^
24
+ LL | fn test_no_bounds<T: std::fmt:: Debug>(t: T) {
25
+ | ^^^^^^^^^^^^^^^^^
26
26
27
27
error[E0277]: `T` doesn't implement `Debug`
28
28
--> $DIR/bound-suggestions.rs:21:22
@@ -34,8 +34,8 @@ LL | println!("{:?}", t);
34
34
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
35
35
help: consider further restricting this bound
36
36
|
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
+ | ^^^^^^^^^^^^^^^^^
39
39
40
40
error[E0277]: `Y` doesn't implement `Debug`
41
41
--> $DIR/bound-suggestions.rs:27:30
@@ -47,8 +47,8 @@ LL | println!("{:?} {:?}", x, y);
47
47
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
48
48
help: consider further restricting type parameter `Y`
49
49
|
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
+ | ^^^^^^^^^^^^^^^^^^^^
52
52
53
53
error[E0277]: `X` doesn't implement `Debug`
54
54
--> $DIR/bound-suggestions.rs:33:22
@@ -60,8 +60,8 @@ LL | println!("{:?}", x);
60
60
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
61
61
help: consider further restricting this bound
62
62
|
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
+ | ^^^^^^^^^^^^^^^^^
65
65
66
66
error[E0277]: `X` doesn't implement `Debug`
67
67
--> $DIR/bound-suggestions.rs:39:22
@@ -73,8 +73,8 @@ LL | println!("{:?}", x);
73
73
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
74
74
help: consider further restricting type parameter `X`
75
75
|
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
+ | ^^^^^^^^^^^^^^^^^^^^
78
78
79
79
error[E0277]: the size for values of type `Self` cannot be known at compilation time
80
80
--> $DIR/bound-suggestions.rs:44:46
0 commit comments