|
| 1 | +error: no method named `f9` found for type `usize` in the current scope |
| 2 | + --> $DIR/issue-7575.rs:74:18 |
| 3 | + | |
| 4 | +74 | u.f8(42) + u.f9(342) + m.fff(42) |
| 5 | + | ^^ |
| 6 | + | |
| 7 | + = note: found the following associated functions; to be used as methods, functions must have a `self` parameter |
| 8 | +note: candidate #1 is defined in the trait `CtxtFn` |
| 9 | + --> $DIR/issue-7575.rs:16:5 |
| 10 | + | |
| 11 | +16 | fn f9(usize) -> usize; //~ NOTE candidate |
| 12 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 13 | + = help: to disambiguate the method call, write `CtxtFn::f9(u, 342)` instead |
| 14 | +note: candidate #2 is defined in the trait `OtherTrait` |
| 15 | + --> $DIR/issue-7575.rs:20:5 |
| 16 | + | |
| 17 | +20 | fn f9(usize) -> usize; //~ NOTE candidate |
| 18 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 19 | + = help: to disambiguate the method call, write `OtherTrait::f9(u, 342)` instead |
| 20 | +note: candidate #3 is defined in the trait `UnusedTrait` |
| 21 | + --> $DIR/issue-7575.rs:29:5 |
| 22 | + | |
| 23 | +29 | fn f9(usize) -> usize; //~ NOTE candidate |
| 24 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 25 | + = help: to disambiguate the method call, write `UnusedTrait::f9(u, 342)` instead |
| 26 | + = help: items from traits can only be used if the trait is implemented and in scope; the following traits define an item `f9`, perhaps you need to implement one of them: |
| 27 | + = help: candidate #1: `CtxtFn` |
| 28 | + = help: candidate #2: `OtherTrait` |
| 29 | + = help: candidate #3: `UnusedTrait` |
| 30 | + |
| 31 | +error: no method named `fff` found for type `Myisize` in the current scope |
| 32 | + --> $DIR/issue-7575.rs:74:30 |
| 33 | + | |
| 34 | +74 | u.f8(42) + u.f9(342) + m.fff(42) |
| 35 | + | ^^^ |
| 36 | + | |
| 37 | + = note: found the following associated functions; to be used as methods, functions must have a `self` parameter |
| 38 | +note: candidate #1 is defined in an impl for the type `Myisize` |
| 39 | + --> $DIR/issue-7575.rs:51:5 |
| 40 | + | |
| 41 | +51 | fn fff(i: isize) -> isize { //~ NOTE candidate |
| 42 | + | _____^ starting here... |
| 43 | +52 | | i |
| 44 | +53 | | } |
| 45 | + | |_____^ ...ending here |
| 46 | + |
| 47 | +error: no method named `is_str` found for type `T` in the current scope |
| 48 | + --> $DIR/issue-7575.rs:85:7 |
| 49 | + | |
| 50 | +85 | t.is_str() |
| 51 | + | ^^^^^^ |
| 52 | + | |
| 53 | + = note: found the following associated functions; to be used as methods, functions must have a `self` parameter |
| 54 | +note: candidate #1 is defined in the trait `ManyImplTrait` |
| 55 | + --> $DIR/issue-7575.rs:57:5 |
| 56 | + | |
| 57 | +57 | fn is_str() -> bool { //~ NOTE candidate |
| 58 | + | _____^ starting here... |
| 59 | +58 | | false |
| 60 | +59 | | } |
| 61 | + | |_____^ ...ending here |
| 62 | + = help: to disambiguate the method call, write `ManyImplTrait::is_str(t)` instead |
| 63 | + = help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `is_str`, perhaps you need to implement it: |
| 64 | + = help: candidate #1: `ManyImplTrait` |
| 65 | + |
| 66 | +error: aborting due to 3 previous errors |
| 67 | + |
0 commit comments