fork/rust

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

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

master
557 B17 linesraw
1error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
2  --> $DIR/issue-104328.rs:10:5
3   |
4LL |     fn f() {}
5   |     --------- `Foo::f` defined here
6...
7LL |     Foo::f();
8   |     ^^^^^^ cannot call associated function of trait
9   |
10help: use the fully-qualified path to the only available implementation
11   |
12LL |     <(dyn Sized + 'static) as Foo>::f();
13   |     +++++++++++++++++++++++++    +
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0790`.