]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/include-macros/mismatched-types.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / include-macros / mismatched-types.stderr
index d035df8e5d83adfbab010e8314762ebd3688cf62..a408877afb61c9c299b3ff14e2f39e89b649c0f7 100644 (file)
@@ -8,7 +8,7 @@ LL |     let b: &[u8] = include_str!("file.txt");
    |
    = note: expected reference `&[u8]`
               found reference `&'static str`
-   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
+   = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error[E0308]: mismatched types
   --> $DIR/mismatched-types.rs:3:19
@@ -20,7 +20,7 @@ LL |     let s: &str = include_bytes!("file.txt");
    |
    = note: expected reference `&str`
               found reference `&'static [u8; 0]`
-   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
+   = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to 2 previous errors