rust/tests/ui/crashes/auxiliary/ice-4727-aux.rs
2019-11-08 07:18:12 +02:00

10 lines
132 B
Rust

pub trait Trait {
fn fun(par: &str) -> &str;
}
impl Trait for str {
fn fun(par: &str) -> &str {
&par[0..1]
}
}