fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0599]: no method named `f9` found for type `usize` in the current scope 2 --> $DIR/issue-7575.rs:62:18 3 | 4LL | u.f8(42) + u.f9(342) + m.fff(42) 5 | ^^ this is an associated function, not a method 6 | 7 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter 8note: candidate #1 is defined in the trait `CtxtFn` 9 --> $DIR/issue-7575.rs:4:5 10 | 11LL | fn f9(_: usize) -> usize; 12 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 13 = help: to disambiguate the method call, write `CtxtFn::f9(u, 342)` instead 14note: candidate #2 is defined in the trait `OtherTrait` 15 --> $DIR/issue-7575.rs:8:5 16 | 17LL | fn f9(_: usize) -> usize; 18 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 19 = help: to disambiguate the method call, write `OtherTrait::f9(u, 342)` instead 20note: candidate #3 is defined in the trait `UnusedTrait` 21 --> $DIR/issue-7575.rs:17:5 22 | 23LL | fn f9(_: usize) -> usize; 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 27 = note: the following traits define an item `f9`, perhaps you need to implement one of them: 28 candidate #1: `CtxtFn` 29 candidate #2: `OtherTrait` 30 candidate #3: `UnusedTrait` 31 32error[E0599]: no method named `fff` found for type `Myisize` in the current scope 33 --> $DIR/issue-7575.rs:62:30 34 | 35LL | struct Myisize(isize); 36 | ---------------------- method `fff` not found for this 37... 38LL | u.f8(42) + u.f9(342) + m.fff(42) 39 | --^^^ 40 | | | 41 | | this is an associated function, not a method 42 | help: use associated function syntax instead: `Myisize::fff` 43 | 44 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter 45note: the candidate is defined in an impl for the type `Myisize` 46 --> $DIR/issue-7575.rs:39:5 47 | 48LL | fn fff(i: isize) -> isize { 49 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 50 51error[E0599]: no method named `is_str` found for type `T` in the current scope 52 --> $DIR/issue-7575.rs:70:7 53 | 54LL | t.is_str() 55 | ^^^^^^ this is an associated function, not a method 56 | 57 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter 58note: the candidate is defined in the trait `ManyImplTrait` 59 --> $DIR/issue-7575.rs:45:5 60 | 61LL | fn is_str() -> bool { 62 | ^^^^^^^^^^^^^^^^^^^ 63 = help: to disambiguate the method call, write `ManyImplTrait::is_str(t)` instead 64 = help: items from traits can only be used if the type parameter is bounded by the trait 65help: the following trait defines an item `is_str`, perhaps you need to restrict type parameter `T` with it: 66 | 67LL | fn param_bound<T: ManyImplTrait + ManyImplTrait>(t: T) -> bool { 68 | ^^^^^^^^^^^^^^^^^^ 69 70error: aborting due to 3 previous errors 71 72For more information about this error, try `rustc --explain E0599`.