Files
rust/tests
Matthias Krüger 03d558f5b6 Rollup merge of #126652 - Manishearth:anon-const-scope, r=bjorn3,Urgau
Clarify that anonymous consts still do introduce a new scope

See https://github.com/rust-lang/rust/issues/120363#issuecomment-2177064702

This error message is misleading: it's trying to say that `const _ : () = ...` is a workaround for the lint, but by saying that anonymous constants are treated as being in the parent scope, it makes them appear useless for scope-hiding.

They *are* useful for scope-hiding, they are simply treated as part of the parent scope when it comes to this lint.
2024-06-20 07:52:44 +02:00
..
2024-06-16 12:56:48 +00:00
2024-06-19 04:41:56 +00:00
2024-06-04 13:49:39 +02:00
2024-06-07 11:55:52 +08:00
2024-06-04 14:15:19 +10:00