2021-04-15 09:58:17 -05:00
|
|
|
error[E0599]: no method named `distance` found for struct `Point<i32>` in the current scope
|
2021-05-22 05:03:37 -05:00
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:82:23
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
|
LL | struct Point<T> {
|
2022-07-01 18:47:26 -05:00
|
|
|
| --------------- method `distance` not found for this struct
|
2021-04-15 09:58:17 -05:00
|
|
|
...
|
|
|
|
LL | let d = point_i32.distance();
|
|
|
|
| ^^^^^^^^ method not found in `Point<i32>`
|
|
|
|
|
|
2021-05-25 09:55:30 -05:00
|
|
|
= note: the method was found for
|
|
|
|
- `Point<f64>`
|
2021-04-15 09:58:17 -05:00
|
|
|
|
2021-05-21 07:01:38 -05:00
|
|
|
error[E0599]: no method named `other` found for struct `Point` in the current scope
|
2021-05-22 05:03:37 -05:00
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:84:23
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
|
LL | struct Point<T> {
|
2022-07-01 18:47:26 -05:00
|
|
|
| --------------- method `other` not found for this struct
|
2021-04-15 09:58:17 -05:00
|
|
|
...
|
|
|
|
LL | let d = point_i32.other();
|
|
|
|
| ^^^^^ method not found in `Point<i32>`
|
|
|
|
|
2021-05-21 07:01:38 -05:00
|
|
|
error[E0599]: no method named `extend` found for struct `Map` in the current scope
|
2021-05-22 05:03:37 -05:00
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:87:29
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
|
LL | v.iter().map(|x| x * x).extend(std::iter::once(100));
|
2022-12-13 18:57:34 -06:00
|
|
|
| ^^^^^^ method not found in `Map<Iter<'_, i32>, [closure@method-not-found-generic-arg-elision.rs:87:18]>`
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for struct `Wrapper<bool>` in the current scope
|
2021-05-22 05:03:37 -05:00
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:90:13
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
|
LL | struct Wrapper<T>(T);
|
2022-07-01 18:47:26 -05:00
|
|
|
| ----------------- method `method` not found for this struct
|
2021-04-15 09:58:17 -05:00
|
|
|
...
|
|
|
|
LL | wrapper.method();
|
|
|
|
| ^^^^^^ method not found in `Wrapper<bool>`
|
|
|
|
|
|
2021-05-25 09:55:30 -05:00
|
|
|
= note: the method was found for
|
|
|
|
- `Wrapper<i8>`
|
|
|
|
- `Wrapper<i16>`
|
|
|
|
- `Wrapper<i32>`
|
|
|
|
- `Wrapper<i64>`
|
|
|
|
and 2 more types
|
2021-04-15 09:58:17 -05:00
|
|
|
|
2021-05-21 07:01:38 -05:00
|
|
|
error[E0599]: no method named `other` found for struct `Wrapper` in the current scope
|
2021-05-22 05:03:37 -05:00
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:92:13
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
|
LL | struct Wrapper<T>(T);
|
2022-07-01 18:47:26 -05:00
|
|
|
| ----------------- method `other` not found for this struct
|
2021-04-15 09:58:17 -05:00
|
|
|
...
|
|
|
|
LL | wrapper.other();
|
|
|
|
| ^^^^^ method not found in `Wrapper<bool>`
|
|
|
|
|
2022-07-18 18:25:14 -05:00
|
|
|
error[E0599]: no method named `method` found for struct `Wrapper2<'_, bool, 3>` in the current scope
|
2021-05-22 05:03:37 -05:00
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:96:13
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
|
LL | struct Wrapper2<'a, T, const C: usize> {
|
2022-07-01 18:47:26 -05:00
|
|
|
| -------------------------------------- method `method` not found for this struct
|
2021-04-15 09:58:17 -05:00
|
|
|
...
|
|
|
|
LL | wrapper.method();
|
2022-07-18 18:25:14 -05:00
|
|
|
| ^^^^^^ method not found in `Wrapper2<'_, bool, 3>`
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
2021-05-25 09:55:30 -05:00
|
|
|
= note: the method was found for
|
|
|
|
- `Wrapper2<'a, i8, C>`
|
|
|
|
- `Wrapper2<'a, i16, C>`
|
|
|
|
- `Wrapper2<'a, i32, C>`
|
2021-04-15 09:58:17 -05:00
|
|
|
|
2021-05-21 07:01:38 -05:00
|
|
|
error[E0599]: no method named `other` found for struct `Wrapper2` in the current scope
|
2021-05-22 05:03:37 -05:00
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:98:13
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
|
LL | struct Wrapper2<'a, T, const C: usize> {
|
2022-07-01 18:47:26 -05:00
|
|
|
| -------------------------------------- method `other` not found for this struct
|
2021-04-15 09:58:17 -05:00
|
|
|
...
|
|
|
|
LL | wrapper.other();
|
2022-07-18 18:25:14 -05:00
|
|
|
| ^^^^^ method not found in `Wrapper2<'_, bool, 3>`
|
2021-04-15 09:58:17 -05:00
|
|
|
|
2021-05-22 05:03:37 -05:00
|
|
|
error[E0599]: no method named `not_found` found for struct `Vec<{integer}>` in the current scope
|
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:101:7
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
|
LL | a.not_found();
|
|
|
|
| ^^^^^^^^^ method not found in `Vec<{integer}>`
|
|
|
|
|
2021-05-22 05:03:37 -05:00
|
|
|
error[E0599]: the method `method` exists for struct `Struct<f64>`, but its trait bounds were not satisfied
|
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:104:7
|
|
|
|
|
|
2022-07-18 18:25:14 -05:00
|
|
|
LL | struct Struct<T> {
|
2022-07-01 18:47:26 -05:00
|
|
|
| ---------------- method `method` not found for this struct
|
2021-05-22 05:03:37 -05:00
|
|
|
...
|
|
|
|
LL | s.method();
|
|
|
|
| ^^^^^^ method cannot be called on `Struct<f64>` due to unsatisfied trait bounds
|
|
|
|
|
|
2023-01-10 22:11:06 -06:00
|
|
|
note: the following trait bounds were not satisfied:
|
|
|
|
`f64: Eq`
|
|
|
|
`f64: Ord`
|
2023-01-10 21:07:14 -06:00
|
|
|
--> $DIR/method-not-found-generic-arg-elision.rs:74:36
|
|
|
|
|
|
|
|
|
LL | impl<T: Clone + Copy + PartialEq + Eq + PartialOrd + Ord> Struct<T> {
|
2023-01-10 22:11:06 -06:00
|
|
|
| ^^ ^^^ ---------
|
|
|
|
| | |
|
|
|
|
| | unsatisfied trait bound introduced here
|
2023-01-10 21:07:14 -06:00
|
|
|
| unsatisfied trait bound introduced here
|
2021-05-22 05:03:37 -05:00
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2021-04-15 09:58:17 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|