X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fconst_static_lifetime.stderr;h=db33744c7a9bf857bf2169f3167cc0d4dd5c144f;hb=73f2ba5ded4452839d2025f6fe6eb0818685fa2a;hp=b1059d2ef012d8b269ee84c22289d428b812ef44;hpb=b835877d2ecba1b91ac74fee5b042ac0673aff14;p=rust.git diff --git a/tests/ui/const_static_lifetime.stderr b/tests/ui/const_static_lifetime.stderr index b1059d2ef01..db33744c7a9 100644 --- a/tests/ui/const_static_lifetime.stderr +++ b/tests/ui/const_static_lifetime.stderr @@ -78,23 +78,5 @@ error: Constants have by default a `'static` lifetime 24 | const VAR_ARRAY: &'static [u8; 1] = b"T"; // ERROR Consider removing 'static. | -^^^^^^^-------- help: consider removing `'static`: `&[u8; 1]` -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:40:23 - | -40 | const TRAIT_VAR: &'static str; - | -^^^^^^^---- help: consider removing `'static`: `&str` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:44:22 - | -44 | const IMPL_VAR: &'static str = "var"; - | -^^^^^^^---- help: consider removing `'static`: `&str` - -error: Constants have by default a `'static` lifetime - --> $DIR/const_static_lifetime.rs:48:23 - | -48 | const TRAIT_VAR: &'static str = "foo"; - | -^^^^^^^---- help: consider removing `'static`: `&str` - -error: aborting due to 16 previous errors +error: aborting due to 13 previous errors