diff options
| author | Jake Goulding <jake.goulding@gmail.com> | 2015-09-07 20:01:14 -0400 |
|---|---|---|
| committer | Jake Goulding <jake.goulding@gmail.com> | 2015-09-07 20:01:14 -0400 |
| commit | acea5f4c82fa8ae084606b5383562f3dc3357d90 (patch) | |
| tree | 475eec6e85642c56da8e20263c6097d34c645ec7 /src/libsyntax/errors | |
| parent | 7bf626a68045be1d1a4fac9a635113bb7775b6bb (diff) | |
| download | rust-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
