rust/tests/ui/feature-gates/feature-gate-concat_bytes.rs
dianne d7d6238b23 use backticks instead of single quotes when reporting "use of unstable library feature"
This is consistent with all other diagnostics I could find containing
features and enables the use of `DiagSymbolList` for generalizing
diagnostics for unstable library features to multiple features.
2024-11-03 13:55:52 -08:00

5 lines
145 B
Rust

fn main() {
let a = concat_bytes!(b'A', b"BC"); //~ ERROR use of unstable library feature `concat_bytes`
assert_eq!(a, &[65, 66, 67]);
}