]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/invalid_utf8_in_unchecked.stderr
Auto merge of #99099 - Stargateur:phantomdata_debug, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / invalid_utf8_in_unchecked.stderr
1 error: non UTF-8 literal in `std::str::from_utf8_unchecked`
2   --> $DIR/invalid_utf8_in_unchecked.rs:16:9
3    |
4 LL |         std::str::from_utf8_unchecked(&[99, 108, 130, 105, 112, 112, 121]);
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::invalid-utf8-in-unchecked` implied by `-D warnings`
8
9 error: non UTF-8 literal in `std::str::from_utf8_unchecked`
10   --> $DIR/invalid_utf8_in_unchecked.rs:17:9
11    |
12 LL |         std::str::from_utf8_unchecked(&[b'c', b'l', b'/x82', b'i', b'p', b'p', b'y']);
13    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: non UTF-8 literal in `std::str::from_utf8_unchecked`
16   --> $DIR/invalid_utf8_in_unchecked.rs:18:9
17    |
18 LL |         std::str::from_utf8_unchecked(b"cl/x82ippy");
19    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: aborting due to 3 previous errors
22