Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small error in macro.bytes!.html #14697

Closed
electricface opened this issue Jun 6, 2014 · 0 comments
Closed

small error in macro.bytes!.html #14697

electricface opened this issue Jun 6, 2014 · 0 comments

Comments

@electricface
Copy link

in file file:///usr/share/doc/rust-nightly/doc/std/macros/builtin/macro.bytes!.html

example

let rust = bytes!("r", 'u', "st", 255);
assert_eq!(rust[1], 'u' as u8);
assert_eq!(rust[5], 255);

task '

' failed at 'index out of bounds: the len is 5 but the index is 5', macros-builtin-test.rs:49

alexcrichton added a commit to alexcrichton/rust that referenced this issue Jun 6, 2014
There were a few examples in the macros::builtin module that weren't being run
because they were being #[cfg]'d out.

Closes rust-lang#14697
mcpherrinm pushed a commit to mcpherrinm/rust that referenced this issue Jun 10, 2014
There were a few examples in the macros::builtin module that weren't being run
because they were being #[cfg]'d out.

Closes rust-lang#14697
bors added a commit to rust-lang-ci/rust that referenced this issue Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant