about summary refs log tree commit diff
path: root/src/test/run-pass/bytes-macro-static.rs
AgeCommit message (Collapse)AuthorLines
2015-01-07Test fixes and rebase conflictsAlex Crichton-21/+0
2014-10-09test: Convert statics to constantsAlex Crichton-1/+1
Additionally, add lots of tests for new functionality around statics and `static mut`.
2014-05-18Make bytes!() return 'staticKevin Ballard-0/+21
Change `bytes!()` to return { static BYTES: &'static [u8] = &[...]; BYTES } This gives it the `'static` lifetime, whereas before it had an rvalue lifetime. Until recently this would have prevented assigning `bytes!()` to a static, as in static FOO: &'static [u8] = bytes!(1,2,3); but #14183 fixed it so blocks are now allowed in constant expressions (with restrictions). Fixes #11641.