]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/useful_asref.rs
Rollup merge of #71785 - reitermarkus:cfg-attribute, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / useful_asref.rs
1 #![deny(clippy::useless_asref)]
2
3 trait Trait {
4     fn as_ptr(&self);
5 }
6
7 impl<'a> Trait for &'a [u8] {
8     fn as_ptr(&self) {
9         self.as_ref().as_ptr();
10     }
11 }
12
13 fn main() {}