]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-48364.stderr
Rollup merge of #106499 - lyming2007:issue-105946-fix, r=estebank
[rust.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 method 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    = note: this error originates in the macro `stringify` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.