Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- assert_eq!(vec![b"1", b"two"], vec![b"1", b"two"])
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0308]: mismatched types
- --> src/main.rs:5:31
- |
- 5 | assert_eq!(vec![b"1", b"two"], vec![b"1", b"two"])
- | ^^^^^^ expected an array with a fixed size of 1 elements, found one with 3 elements
- |
- = note: expected type `&[u8; 1]`
- found type `&'static [u8; 3]`
- error[E0308]: mismatched types
- --> src/main.rs:5:51
- |
- 5 | assert_eq!(vec![b"1", b"two"], vec![b"1", b"two"])
- | ^^^^^^ expected an array with a fixed size of 1 elements, found one with 3 elements
- |
- = note: expected type `&[u8; 1]`
- found type `&'static [u8; 3]`
- error: aborting due to 2 previous errors
- 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 ===~~~~
- */
Add Comment
Please, Sign In to add comment