]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-7575.stderr
Auto merge of #42480 - eddyb:issue-42463, r=nikomatsakis
[rust.git] / src / test / ui / span / issue-7575.stderr
1 error[E0599]: 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
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
32 error[E0599]: no method named `fff` found for type `Myisize` in the current scope
33   --> $DIR/issue-7575.rs:74:30
34    |
35 74 |     u.f8(42) + u.f9(342) + m.fff(42)
36    |                              ^^^
37    |
38    = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
39 note: candidate #1 is defined in an impl for the type `Myisize`
40   --> $DIR/issue-7575.rs:51:5
41    |
42 51 | /     fn fff(i: isize) -> isize { //~ NOTE candidate
43 52 | |         i
44 53 | |     }
45    | |_____^
46
47 error[E0599]: 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 58 | |         false
59 59 | |     }
60    | |_____^
61    = help: to disambiguate the method call, write `ManyImplTrait::is_str(t)` instead
62    = help: items from traits can only be used if the trait is implemented and in scope
63    = note: the following trait defines an item `is_str`, perhaps you need to implement it:
64            candidate #1: `ManyImplTrait`
65
66 error: aborting due to previous error(s)
67