1 error[E0425]: cannot find function `cmp` in this scope
2 --> $DIR/fn-to-method.rs:8:13
4 LL | let x = cmp(&1, &2);
5 | ^^^ not found in this scope
7 help: use the `.` operator to call the method `Ord::cmp` on `&{integer}`
9 LL | let x = (&1).cmp(&2);
12 error[E0425]: cannot find function `len` in this scope
13 --> $DIR/fn-to-method.rs:12:13
15 LL | let y = len([1, 2, 3]);
16 | ^^^ not found in this scope
18 help: use the `.` operator to call the method `len` on `&[{integer}]`
20 LL - let y = len([1, 2, 3]);
21 LL + let y = [1, 2, 3].len();
24 error[E0425]: cannot find function `bar` in this scope
25 --> $DIR/fn-to-method.rs:16:13
27 LL | let z = bar(Foo);
28 | ^^^ not found in this scope
30 help: use the `.` operator to call the method `bar` on `Foo`
32 LL - let z = bar(Foo);
33 LL + let z = Foo.bar();
36 error: aborting due to 3 previous errors
38 For more information about this error, try `rustc --explain E0425`.