blob: 5bf0e8e3063bfd7b526d0d15ac39495048deb819 [file] [edit]
//@ run-rustfix
use std::ops::Range;
struct Strange;
impl From<Range<usize>> for Strange {
fn from(_: Range<usize>) -> Self {
Self
}
}
fn main() {
let _: Strange = (0..10).into();
//~^ ERROR mismatched types
//~| HELP call `Into::into` on this expression
}