2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-31 23:39:07 +00:00
rust-clippy/tests/ui/crashes/auxiliary/ice-4727-aux.rs

10 lines
132 B
Rust
Raw Normal View History

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