diff options
| author | Ralf Jung <post@ralfj.de> | 2025-06-27 15:32:53 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-06-27 17:03:48 +0200 |
| commit | d0fa0260ca410b5691a03237e7336bb09c135230 (patch) | |
| tree | 36bbbda6a73349ccbc9a4806f94177d3b91971f0 /tests/ui/statics/check-immutable-mut-slices.rs | |
| parent | e61dd437f33b5a640e67dc3628397689c664c17f (diff) | |
| download | rust-d0fa0260ca410b5691a03237e7336bb09c135230.tar.gz rust-d0fa0260ca410b5691a03237e7336bb09c135230.zip | |
const checks: avoid 'top-level scope' terminology
Diffstat (limited to 'tests/ui/statics/check-immutable-mut-slices.rs')
| -rw-r--r-- | tests/ui/statics/check-immutable-mut-slices.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/statics/check-immutable-mut-slices.rs b/tests/ui/statics/check-immutable-mut-slices.rs index 9e5ca5059d6..19545a1c925 100644 --- a/tests/ui/statics/check-immutable-mut-slices.rs +++ b/tests/ui/statics/check-immutable-mut-slices.rs @@ -1,6 +1,6 @@ // Checks that immutable static items can't have mutable slices static TEST: &'static mut [isize] = &mut []; -//~^ ERROR mutable borrows of lifetime-extended temporaries +//~^ ERROR mutable borrows of temporaries pub fn main() { } |
