fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
699 B15 linesraw
1error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in generic parameter defaults
2  --> $DIR/issue-83929-impl-trait-in-generic-default.rs:1:16
3   |
4LL | struct Foo<T = impl Copy>(T);
5   |                ^^^^^^^^^
6
7error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in generic parameter defaults
8  --> $DIR/issue-83929-impl-trait-in-generic-default.rs:4:20
9   |
10LL | type Result<T, E = impl std::error::Error> = std::result::Result<T, E>;
11   |                    ^^^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0562`.