mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-25 03:47:18 +00:00
13 lines
217 B
Rust
13 lines
217 B
Rust
//ignore-test
|
|
|
|
// This file is used by the ice-4727 test but isn't itself a test.
|
|
//
|
|
pub trait Trait {
|
|
fn fun(par: &str) -> &str;
|
|
}
|
|
|
|
impl Trait for str {
|
|
fn fun(par: &str) -> &str {
|
|
&par[0..1]
|
|
}
|
|
}
|