fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: `impl Sized` doesn't implement `Debug` 2 --> $DIR/bound-suggestions.rs:9:22 3 | 4LL | println!("{:?}", t); 5 | ^ `impl Sized` cannot be formatted using `{:?}` because it doesn't implement `Debug` 6 | 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) 8help: consider further restricting this bound 9 | 10LL | fn test_impl(t: impl Sized + std::fmt::Debug) { 11 | +++++++++++++++++ 12 13error[E0277]: `T` doesn't implement `Debug` 14 --> $DIR/bound-suggestions.rs:15:22 15 | 16LL | println!("{:?}", t); 17 | ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug` 18 | 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) 20help: consider restricting type parameter `T` 21 | 22LL | fn test_no_bounds<T: std::fmt::Debug>(t: T) { 23 | +++++++++++++++++ 24 25error[E0277]: `T` doesn't implement `Debug` 26 --> $DIR/bound-suggestions.rs:21:22 27 | 28LL | println!("{:?}", t); 29 | ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug` 30 | 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) 32help: consider further restricting this bound 33 | 34LL | fn test_one_bound<T: Sized + std::fmt::Debug>(t: T) { 35 | +++++++++++++++++ 36 37error[E0277]: `Y` doesn't implement `Debug` 38 --> $DIR/bound-suggestions.rs:27:30 39 | 40LL | println!("{:?} {:?}", x, y); 41 | ^ `Y` cannot be formatted using `{:?}` because it doesn't implement `Debug` 42 | 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) 44help: consider further restricting type parameter `Y` 45 | 46LL | fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug, Y: std::fmt::Debug { 47 | ~~~~~~~~~~~~~~~~~~~~ 48 49error[E0277]: `X` doesn't implement `Debug` 50 --> $DIR/bound-suggestions.rs:33:22 51 | 52LL | println!("{:?}", x); 53 | ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug` 54 | 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) 56help: consider further restricting this bound 57 | 58LL | fn test_one_bound_where<X>(x: X) where X: Sized + std::fmt::Debug { 59 | +++++++++++++++++ 60 61error[E0277]: `X` doesn't implement `Debug` 62 --> $DIR/bound-suggestions.rs:39:22 63 | 64LL | println!("{:?}", x); 65 | ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug` 66 | 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) 68help: consider further restricting this bound 69 | 70LL | fn test_many_bounds_where<X>(x: X) where X: Sized + std::fmt::Debug, X: Sized { 71 | +++++++++++++++++ 72 73error[E0277]: the size for values of type `Self` cannot be known at compilation time 74 --> $DIR/bound-suggestions.rs:44:46 75 | 76LL | const SIZE: usize = core::mem::size_of::<Self>(); 77 | ^^^^ doesn't have a size known at compile-time 78 | 79note: required by a bound in `std::mem::size_of` 80 --> $SRC_DIR/core/src/mem/mod.rs:LL:COL 81help: consider further restricting `Self` 82 | 83LL | trait Foo<T>: Sized { 84 | +++++++ 85 86error[E0277]: the size for values of type `Self` cannot be known at compilation time 87 --> $DIR/bound-suggestions.rs:49:46 88 | 89LL | const SIZE: usize = core::mem::size_of::<Self>(); 90 | ^^^^ doesn't have a size known at compile-time 91 | 92note: required by a bound in `std::mem::size_of` 93 --> $SRC_DIR/core/src/mem/mod.rs:LL:COL 94help: consider further restricting `Self` 95 | 96LL | trait Bar: std::fmt::Display + Sized { 97 | +++++++ 98 99error[E0277]: the size for values of type `Self` cannot be known at compilation time 100 --> $DIR/bound-suggestions.rs:54:46 101 | 102LL | const SIZE: usize = core::mem::size_of::<Self>(); 103 | ^^^^ doesn't have a size known at compile-time 104 | 105note: required by a bound in `std::mem::size_of` 106 --> $SRC_DIR/core/src/mem/mod.rs:LL:COL 107help: consider further restricting `Self` 108 | 109LL | trait Baz: Sized where Self: std::fmt::Display { 110 | +++++++ 111 112error[E0277]: the size for values of type `Self` cannot be known at compilation time 113 --> $DIR/bound-suggestions.rs:59:46 114 | 115LL | const SIZE: usize = core::mem::size_of::<Self>(); 116 | ^^^^ doesn't have a size known at compile-time 117 | 118note: required by a bound in `std::mem::size_of` 119 --> $SRC_DIR/core/src/mem/mod.rs:LL:COL 120help: consider further restricting `Self` 121 | 122LL | trait Qux<T>: Sized where Self: std::fmt::Display { 123 | +++++++ 124 125error[E0277]: the size for values of type `Self` cannot be known at compilation time 126 --> $DIR/bound-suggestions.rs:64:46 127 | 128LL | const SIZE: usize = core::mem::size_of::<Self>(); 129 | ^^^^ doesn't have a size known at compile-time 130 | 131note: required by a bound in `std::mem::size_of` 132 --> $SRC_DIR/core/src/mem/mod.rs:LL:COL 133help: consider further restricting `Self` 134 | 135LL | trait Bat<T>: std::fmt::Display + Sized { 136 | +++++++ 137 138error: aborting due to 11 previous errors 139 140For more information about this error, try `rustc --explain E0277`.