about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorJake Goulding <jake.goulding@gmail.com>2015-09-07 20:01:14 -0400
committerJake Goulding <jake.goulding@gmail.com>2015-09-07 20:01:14 -0400
commitacea5f4c82fa8ae084606b5383562f3dc3357d90 (patch)
tree475eec6e85642c56da8e20263c6097d34c645ec7 /src/libsyntax/errors
parent7bf626a68045be1d1a4fac9a635113bb7775b6bb (diff)
downloadrust-acea5f4c82fa8ae084606b5383562f3dc3357d90.tar.gz
rust-acea5f4c82fa8ae084606b5383562f3dc3357d90.zip
Clarify that `include_bytes!` returns a reference to an array, not just a slice
This can be shown with the example code

```rust
fn main() {
    let () = include_bytes!("/etc/hosts");
}

Which will have the error:

expected `&[u8; 195]`,
    found `()`
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions