use core::fmt::Debug;
#[derive( PartialEq, Debug, Clone, Copy)]
struct TestMe1<T>
where T:Clone+Copy+Debug
(u8, T);
fn main() {
println!("hi")
}
Error
Compiling playground v0.0.1 (/playground)
error[E0658]: parenthetical notation is only stable when used with `Fn`-family traits
--> src/main.rs:5:20
|
5 | where T:Clone+Copy+Debug
| ____________________^
6 | | (u8, T);
| |_______^
|
= note: see issue #29625 <https://github.com/rust-lang/rust/issues/29625> for more information
error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied
--> src/main.rs:5:20
|
5 | where T:Clone+Copy+Debug
| ____________________^^^^^-
| | |
| | expected 0 generic arguments
6 | | (u8, T);
| |_______- help: remove these parenthetical generics
error[E0220]: associated type `Output` not found for `Debug`
--> src/main.rs:5:20
|
5 | where T:Clone+Copy+Debug
| ____________________^
6 | | (u8, T);
| |_______^ associated type `Output` not found
Some errors have detailed explanations: E0107, E0220, E0658.
For more information about an error, try `rustc --explain E0107`.
error: could not compile `playground` (bin "playground") due to 3 previous errors
Standard Output