]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/redundant_static_lifetimes_multiple.rs
Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / redundant_static_lifetimes_multiple.rs
1 // these are rustfixable, but run-rustfix tests cannot handle them
2
3 const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
4
5 const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
6
7 static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR Consider removing 'static
8
9 static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR Consider removing 'static
10
11 static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
12
13 fn main() {}