Open tritao opened 3 weeks ago
Alternative repro:
library;
struct Vec<T> {
}
impl<T> Vec<T> {
fn new() -> Self { return Self {}}
fn push(elem: T) {}
fn wrap(self) -> Vec<Self> {
let mut v = Vec::new();
v.push(self);
v
}
}
fn main() {
let mut a: Vec<_> = Vec::new();
a.push("str");
}
This is related to
v.push(self);
line.