]> git.proxmox.com Git - rustc.git/blob - tests/ui/methods/method-not-found-generic-arg-elision.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / methods / method-not-found-generic-arg-elision.stderr
1 error[E0599]: no method named `distance` found for struct `Point<i32>` in the current scope
2 --> $DIR/method-not-found-generic-arg-elision.rs:82:23
3 |
4 LL | struct Point<T> {
5 | --------------- method `distance` not found for this struct
6 ...
7 LL | let d = point_i32.distance();
8 | ^^^^^^^^ method not found in `Point<i32>`
9 |
10 = note: the method was found for
11 - `Point<f64>`
12
13 error[E0599]: no method named `other` found for struct `Point` in the current scope
14 --> $DIR/method-not-found-generic-arg-elision.rs:84:23
15 |
16 LL | struct Point<T> {
17 | --------------- method `other` not found for this struct
18 ...
19 LL | let d = point_i32.other();
20 | ^^^^^ method not found in `Point<i32>`
21
22 error[E0599]: no method named `extend` found for struct `Map` in the current scope
23 --> $DIR/method-not-found-generic-arg-elision.rs:87:29
24 |
25 LL | v.iter().map(|x| x * x).extend(std::iter::once(100));
26 | ^^^^^^ method not found in `Map<Iter<'_, i32>, [closure@method-not-found-generic-arg-elision.rs:87:18]>`
27
28 error[E0599]: no method named `method` found for struct `Wrapper<bool>` in the current scope
29 --> $DIR/method-not-found-generic-arg-elision.rs:90:13
30 |
31 LL | struct Wrapper<T>(T);
32 | ----------------- method `method` not found for this struct
33 ...
34 LL | wrapper.method();
35 | ^^^^^^ method not found in `Wrapper<bool>`
36 |
37 = note: the method was found for
38 - `Wrapper<i8>`
39 - `Wrapper<i16>`
40 - `Wrapper<i32>`
41 - `Wrapper<i64>`
42 and 2 more types
43
44 error[E0599]: no method named `other` found for struct `Wrapper` in the current scope
45 --> $DIR/method-not-found-generic-arg-elision.rs:92:13
46 |
47 LL | struct Wrapper<T>(T);
48 | ----------------- method `other` not found for this struct
49 ...
50 LL | wrapper.other();
51 | ^^^^^ method not found in `Wrapper<bool>`
52
53 error[E0599]: no method named `method` found for struct `Wrapper2<'_, bool, 3>` in the current scope
54 --> $DIR/method-not-found-generic-arg-elision.rs:96:13
55 |
56 LL | struct Wrapper2<'a, T, const C: usize> {
57 | -------------------------------------- method `method` not found for this struct
58 ...
59 LL | wrapper.method();
60 | ^^^^^^ method not found in `Wrapper2<'_, bool, 3>`
61 |
62 = note: the method was found for
63 - `Wrapper2<'a, i8, C>`
64 - `Wrapper2<'a, i16, C>`
65 - `Wrapper2<'a, i32, C>`
66
67 error[E0599]: no method named `other` found for struct `Wrapper2` in the current scope
68 --> $DIR/method-not-found-generic-arg-elision.rs:98:13
69 |
70 LL | struct Wrapper2<'a, T, const C: usize> {
71 | -------------------------------------- method `other` not found for this struct
72 ...
73 LL | wrapper.other();
74 | ^^^^^ method not found in `Wrapper2<'_, bool, 3>`
75
76 error[E0599]: no method named `not_found` found for struct `Vec<{integer}>` in the current scope
77 --> $DIR/method-not-found-generic-arg-elision.rs:101:7
78 |
79 LL | a.not_found();
80 | ^^^^^^^^^ method not found in `Vec<{integer}>`
81
82 error[E0599]: the method `method` exists for struct `Struct<f64>`, but its trait bounds were not satisfied
83 --> $DIR/method-not-found-generic-arg-elision.rs:104:7
84 |
85 LL | struct Struct<T> {
86 | ---------------- method `method` not found for this struct
87 ...
88 LL | s.method();
89 | ^^^^^^ method cannot be called on `Struct<f64>` due to unsatisfied trait bounds
90 |
91 note: the following trait bounds were not satisfied:
92 `f64: Eq`
93 `f64: Ord`
94 --> $DIR/method-not-found-generic-arg-elision.rs:74:36
95 |
96 LL | impl<T: Clone + Copy + PartialEq + Eq + PartialOrd + Ord> Struct<T> {
97 | ^^ ^^^ ---------
98 | | |
99 | | unsatisfied trait bound introduced here
100 | unsatisfied trait bound introduced here
101
102 error: aborting due to 9 previous errors
103
104 For more information about this error, try `rustc --explain E0599`.