fork/rust

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

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

master
403 B12 linesraw
1error[E0049]: method `bar` has 1 type parameter but its trait declaration has 0 type parameters
2  --> $DIR/generics-mismatch.rs:11:12
3   |
4LL |     fn bar(&self) -> impl Sized;
5   |           - expected 0 type parameters
6...
7LL |     fn bar<T>(&self) {}
8   |            ^ found 1 type parameter
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0049`.