fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: constants have by default a `'static` lifetime 2 --> $DIR/redundant_static_lifetimes.rs:6:17 3 | 4LL | const VAR_ONE: &'static str = "Test constant #1"; // ERROR: Consider removing 'static. 5 | -^^^^^^^---- help: consider removing `'static`: `&str` 6 | 7 = note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::redundant_static_lifetimes)]` 9 10error: constants have by default a `'static` lifetime 11 --> $DIR/redundant_static_lifetimes.rs:10:21 12 | 13LL | const VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR: Consider removing 'static 14 | -^^^^^^^---- help: consider removing `'static`: `&str` 15 16error: constants have by default a `'static` lifetime 17 --> $DIR/redundant_static_lifetimes.rs:12:32 18 | 19LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR: Consider removing 'static 20 | -^^^^^^^---- help: consider removing `'static`: `&str` 21 22error: constants have by default a `'static` lifetime 23 --> $DIR/redundant_static_lifetimes.rs:12:47 24 | 25LL | const VAR_FOUR: (&str, (&str, &'static str), &'static str) = ("on", ("th", "th"), "on"); // ERROR: Consider removing 'static 26 | -^^^^^^^---- help: consider removing `'static`: `&str` 27 28error: constants have by default a `'static` lifetime 29 --> $DIR/redundant_static_lifetimes.rs:14:17 30 | 31LL | const VAR_SIX: &'static u8 = &5; 32 | -^^^^^^^--- help: consider removing `'static`: `&u8` 33 34error: constants have by default a `'static` lifetime 35 --> $DIR/redundant_static_lifetimes.rs:16:20 36 | 37LL | const VAR_HEIGHT: &'static Foo = &Foo {}; 38 | -^^^^^^^---- help: consider removing `'static`: `&Foo` 39 40error: constants have by default a `'static` lifetime 41 --> $DIR/redundant_static_lifetimes.rs:18:19 42 | 43LL | const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR: Consider removing 'static. 44 | -^^^^^^^----- help: consider removing `'static`: `&[u8]` 45 46error: constants have by default a `'static` lifetime 47 --> $DIR/redundant_static_lifetimes.rs:20:19 48 | 49LL | const VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR: Consider removing 'static. 50 | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)` 51 52error: constants have by default a `'static` lifetime 53 --> $DIR/redundant_static_lifetimes.rs:22:19 54 | 55LL | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR: Consider removing 'static. 56 | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]` 57 58error: statics have by default a `'static` lifetime 59 --> $DIR/redundant_static_lifetimes.rs:24:25 60 | 61LL | static STATIC_VAR_ONE: &'static str = "Test static #1"; // ERROR: Consider removing 'static. 62 | -^^^^^^^---- help: consider removing `'static`: `&str` 63 64error: statics have by default a `'static` lifetime 65 --> $DIR/redundant_static_lifetimes.rs:28:29 66 | 67LL | static STATIC_VAR_THREE: &[&'static str] = &["one", "two"]; // ERROR: Consider removing 'static 68 | -^^^^^^^---- help: consider removing `'static`: `&str` 69 70error: statics have by default a `'static` lifetime 71 --> $DIR/redundant_static_lifetimes.rs:30:25 72 | 73LL | static STATIC_VAR_SIX: &'static u8 = &5; 74 | -^^^^^^^--- help: consider removing `'static`: `&u8` 75 76error: statics have by default a `'static` lifetime 77 --> $DIR/redundant_static_lifetimes.rs:32:28 78 | 79LL | static STATIC_VAR_HEIGHT: &'static Foo = &Foo {}; 80 | -^^^^^^^---- help: consider removing `'static`: `&Foo` 81 82error: statics have by default a `'static` lifetime 83 --> $DIR/redundant_static_lifetimes.rs:34:27 84 | 85LL | static STATIC_VAR_SLICE: &'static [u8] = b"Test static #3"; // ERROR: Consider removing 'static. 86 | -^^^^^^^----- help: consider removing `'static`: `&[u8]` 87 88error: statics have by default a `'static` lifetime 89 --> $DIR/redundant_static_lifetimes.rs:36:27 90 | 91LL | static STATIC_VAR_TUPLE: &'static (u8, u8) = &(1, 2); // ERROR: Consider removing 'static. 92 | -^^^^^^^--------- help: consider removing `'static`: `&(u8, u8)` 93 94error: statics have by default a `'static` lifetime 95 --> $DIR/redundant_static_lifetimes.rs:38:27 96 | 97LL | static STATIC_VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR: Consider removing 'static. 98 | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]` 99 100error: statics have by default a `'static` lifetime 101 --> $DIR/redundant_static_lifetimes.rs:40:31 102 | 103LL | static mut STATIC_MUT_SLICE: &'static mut [u32] = &mut [0]; 104 | -^^^^^^^---------- help: consider removing `'static`: `&mut [u32]` 105 106error: statics have by default a `'static` lifetime 107 --> $DIR/redundant_static_lifetimes.rs:69:16 108 | 109LL | static V: &'static u8 = &17; 110 | -^^^^^^^--- help: consider removing `'static`: `&u8` 111 112error: aborting due to 18 previous errors 113