]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-48364.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-48364.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-48364.rs:2:21
3 |
4 LL | b"".starts_with(stringify!(foo))
5 | ----------- ^^^^^^^^^^^^^^^ expected slice `[u8]`, found `str`
6 | |
7 | arguments to this function are incorrect
8 |
9 = note: expected reference `&[u8]`
10 found reference `&'static str`
11 note: associated function defined here
12 --> $SRC_DIR/core/src/slice/mod.rs:LL:COL
13 |
14 LL | pub fn starts_with(&self, needle: &[T]) -> bool
15 | ^^^^^^^^^^^
16 = note: this error originates in the macro `stringify` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.