summary refs log tree commit diff
path: root/src/test/ui/span/issue-7575.stderr
blob: aeb98e4cabc26d97493c23a1e933891aa2ab4f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
error[E0599]: no method named `f9` found for type `usize` in the current scope
  --> $DIR/issue-7575.rs:74:18
   |
74 |     u.f8(42) + u.f9(342) + m.fff(42)
   |                  ^^
   |
   = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
   = help: try with `usize::f9`
note: candidate #1 is defined in the trait `CtxtFn`
  --> $DIR/issue-7575.rs:16:5
   |
16 |     fn f9(_: usize) -> usize;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   = help: to disambiguate the method call, write `CtxtFn::f9(u, 342)` instead
note: candidate #2 is defined in the trait `OtherTrait`
  --> $DIR/issue-7575.rs:20:5
   |
20 |     fn f9(_: usize) -> usize;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   = help: to disambiguate the method call, write `OtherTrait::f9(u, 342)` instead
note: candidate #3 is defined in the trait `UnusedTrait`
  --> $DIR/issue-7575.rs:29:5
   |
29 |     fn f9(_: usize) -> usize;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   = help: to disambiguate the method call, write `UnusedTrait::f9(u, 342)` instead
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following traits define an item `f9`, perhaps you need to implement one of them:
           candidate #1: `CtxtFn`
           candidate #2: `OtherTrait`
           candidate #3: `UnusedTrait`

error[E0599]: no method named `fff` found for type `Myisize` in the current scope
  --> $DIR/issue-7575.rs:74:30
   |
48 | struct Myisize(isize);
   | ---------------------- method `fff` not found for this
...
74 |     u.f8(42) + u.f9(342) + m.fff(42)
   |                              ^^^
   |
   = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
   = help: try with `Myisize::fff`
note: candidate #1 is defined in an impl for the type `Myisize`
  --> $DIR/issue-7575.rs:51:5
   |
51 |     fn fff(i: isize) -> isize {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `is_str` found for type `T` in the current scope
  --> $DIR/issue-7575.rs:82:7
   |
82 |     t.is_str()
   |       ^^^^^^
   |
   = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
   = help: try with `T::is_str`
note: candidate #1 is defined in the trait `ManyImplTrait`
  --> $DIR/issue-7575.rs:57:5
   |
57 |     fn is_str() -> bool {
   |     ^^^^^^^^^^^^^^^^^^^
   = help: to disambiguate the method call, write `ManyImplTrait::is_str(t)` instead
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following trait defines an item `is_str`, perhaps you need to implement it:
           candidate #1: `ManyImplTrait`

error: aborting due to 3 previous errors