2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: `impl Sized` doesn't implement `Debug`
|
|
|
|
--> $DIR/bound-suggestions.rs:9:22
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
LL | println!("{:?}", t);
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^ `impl Sized` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
= note: required by `std::fmt::Debug::fmt`
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
LL | fn test_impl(t: impl Sized + Debug) {
|
|
|
|
| ^^^^^^^
|
2019-12-26 06:43:33 -06:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: `T` doesn't implement `Debug`
|
|
|
|
--> $DIR/bound-suggestions.rs:15:22
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
LL | println!("{:?}", t);
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
= note: required by `std::fmt::Debug::fmt`
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider restricting type parameter `T`
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
LL | fn test_no_bounds<T: Debug>(t: T) {
|
|
|
|
| ^^^^^^^
|
2019-12-26 06:43:33 -06:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: `T` doesn't implement `Debug`
|
|
|
|
--> $DIR/bound-suggestions.rs:21:22
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
LL | println!("{:?}", t);
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
= note: required by `std::fmt::Debug::fmt`
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
LL | fn test_one_bound<T: Sized + Debug>(t: T) {
|
|
|
|
| ^^^^^^^
|
2019-12-26 06:43:33 -06:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: `Y` doesn't implement `Debug`
|
|
|
|
--> $DIR/bound-suggestions.rs:27:30
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
LL | println!("{:?} {:?}", x, y);
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^ `Y` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
= note: required by `std::fmt::Debug::fmt`
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider further restricting type parameter `Y`
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
LL | fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug, Y: Debug {
|
|
|
|
| ^^^^^^^^^^
|
2019-12-26 06:43:33 -06:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: `X` doesn't implement `Debug`
|
|
|
|
--> $DIR/bound-suggestions.rs:33:22
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
LL | println!("{:?}", x);
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
= note: required by `std::fmt::Debug::fmt`
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
LL | fn test_one_bound_where<X>(x: X) where X: Sized + Debug {
|
|
|
|
| ^^^^^^^
|
2019-12-26 06:43:33 -06:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: `X` doesn't implement `Debug`
|
|
|
|
--> $DIR/bound-suggestions.rs:39:22
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
LL | println!("{:?}", x);
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
|
= note: required by `std::fmt::Debug::fmt`
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider further restricting type parameter `X`
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
LL | fn test_many_bounds_where<X>(x: X) where X: Sized, X: Sized, X: Debug {
|
|
|
|
| ^^^^^^^^^^
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|