blob: 8cb6e449184265fe976431a535abc15ffd8de81d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//@no-rustfix: overlapping suggestions
// these are rustfixable, but run-rustfix tests cannot handle them
const VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
//~^ redundant_static_lifetimes
//~| redundant_static_lifetimes
const VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
//~^ redundant_static_lifetimes
//~| redundant_static_lifetimes
static STATIC_VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR: Consider removing 'static
//~^ redundant_static_lifetimes
//~| redundant_static_lifetimes
static STATIC_VAR_FIVE: &'static [&[&'static str]] = &[&["test"], &["other one"]]; // ERROR: Consider removing 'static
//~^ redundant_static_lifetimes
//~| redundant_static_lifetimes
static STATIC_VAR_SEVEN: &[&(&str, &'static [&'static str])] = &[&("one", &["other one"])];
//~^ redundant_static_lifetimes
//~| redundant_static_lifetimes
fn main() {}
|