Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- let v: Vec<Vec<u8>> = Default::default(); let s: &[&[u8]] = &v; s
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error[E0308]: mismatched types
- --> src/main.rs:6:69
- |
- 6 | let v: Vec<Vec<u8>> = Default::default(); let s: &[&[u8]] = &v; s
- | ^^ expected slice, found struct `std::vec::Vec`
- |
- = note: expected type `&[&[u8]]`
- found type `&std::vec::Vec<std::vec::Vec<u8>>`
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0308`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement