fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[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 | 4LL | struct Point<T> { 5 | --------------- method `distance` not found for this struct 6... 7LL | let d = point_i32.distance(); 8 | ^^^^^^^^ method not found in `Point<i32>` 9 | 10 = note: the method was found for 11 - `Point<f64>` 12 13error[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 | 16LL | struct Point<T> { 17 | --------------- method `other` not found for this struct 18... 19LL | let d = point_i32.other(); 20 | ^^^^^ method not found in `Point<i32>` 21 22error[E0599]: no method named `extend` found for struct `Map` in the current scope 23 --> $DIR/method-not-found-generic-arg-elision.rs:87:67 24 | 25LL | v.iter().map(Box::new(|x| x * x) as Box<dyn Fn(&i32) -> i32>).extend(std::iter::once(100)); 26 | ^^^^^^ method not found in `Map<Iter<'_, i32>, Box<dyn Fn(&i32) -> i32>>` 27 28error[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 | 31LL | struct Wrapper<T>(T); 32 | ----------------- method `method` not found for this struct 33... 34LL | 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 44error[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 | 47LL | struct Wrapper<T>(T); 48 | ----------------- method `other` not found for this struct 49... 50LL | wrapper.other(); 51 | ^^^^^ method not found in `Wrapper<bool>` 52 53error[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 | 56LL | struct Wrapper2<'a, T, const C: usize> { 57 | -------------------------------------- method `method` not found for this struct 58... 59LL | 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 67error[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 | 70LL | struct Wrapper2<'a, T, const C: usize> { 71 | -------------------------------------- method `other` not found for this struct 72... 73LL | wrapper.other(); 74 | ^^^^^ method not found in `Wrapper2<'_, bool, 3>` 75 76error[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 | 79LL | a.not_found(); 80 | ^^^^^^^^^ method not found in `Vec<{integer}>` 81 82error[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 | 85LL | struct Struct<T> { 86 | ---------------- method `method` not found for this struct 87... 88LL | s.method(); 89 | ^^^^^^ method cannot be called on `Struct<f64>` due to unsatisfied trait bounds 90 | 91note: 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 | 96LL | 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 102error: aborting due to 9 previous errors 103 104For more information about this error, try `rustc --explain E0599`.