Add backticks in appropriate places
This commit is contained in:
parent
8461fa5119
commit
e84248921b
25 changed files with 72 additions and 71 deletions
|
|
@ -45,7 +45,7 @@ LL | const BAR: [Empty; 3] = [unsafe { std::mem::transmute(()) }; 3];
|
|||
| this code causes undefined behavior when executed
|
||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||
|
|
||||
= note: 0-variant enums have no valid value
|
||||
= note: enums with no variants have no valid value
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// run-pass
|
||||
|
||||
mod foo {
|
||||
#![macro_escape] //~ WARNING macro_escape is a deprecated synonym for macro_use
|
||||
#![macro_escape] //~ WARN `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
warning: macro_escape is a deprecated synonym for macro_use
|
||||
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
--> $DIR/deprecated-macro_escape-inner.rs:4:5
|
||||
|
|
||||
LL | #![macro_escape]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
// run-pass
|
||||
|
||||
#[macro_escape] //~ WARNING macro_escape is a deprecated synonym for macro_use
|
||||
mod foo {
|
||||
}
|
||||
#[macro_escape] //~ WARNING `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
mod foo {}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
warning: macro_escape is a deprecated synonym for macro_use
|
||||
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
--> $DIR/deprecated-macro_escape.rs:3:1
|
||||
|
|
||||
LL | #[macro_escape]
|
||||
|
|
|
|||
|
|
@ -464,10 +464,10 @@ mod reexport_test_harness_main {
|
|||
|
||||
// Cannot feed "2700" to `#[macro_escape]` without signaling an error.
|
||||
#[macro_escape]
|
||||
//~^ WARN macro_escape is a deprecated synonym for macro_use
|
||||
//~^ WARN `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
mod macro_escape {
|
||||
mod inner { #![macro_escape] }
|
||||
//~^ WARN macro_escape is a deprecated synonym for macro_use
|
||||
//~^ WARN `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
|
||||
#[macro_escape] fn f() { }
|
||||
//~^ WARN unused attribute
|
||||
|
|
|
|||
|
|
@ -172,13 +172,13 @@ warning: unknown lint: `x5100`
|
|||
LL | #[deny(x5100)] impl S { }
|
||||
| ^^^^^
|
||||
|
||||
warning: macro_escape is a deprecated synonym for macro_use
|
||||
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:466:1
|
||||
|
|
||||
LL | #[macro_escape]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
warning: macro_escape is a deprecated synonym for macro_use
|
||||
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:469:17
|
||||
|
|
||||
LL | mod inner { #![macro_escape] }
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@
|
|||
// check-pass
|
||||
|
||||
#![macro_escape]
|
||||
//~^ WARN macro_escape is a deprecated synonym for macro_use
|
||||
//~^ WARN `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
warning: macro_escape is a deprecated synonym for macro_use
|
||||
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||
--> $DIR/issue-43106-gating-of-macro_escape.rs:8:1
|
||||
|
|
||||
LL | #![macro_escape]
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@
|
|||
// get that warning; see issue-43106-gating-of-builtin-attrs.rs
|
||||
|
||||
#![macro_use(my_macro)]
|
||||
//~^ ERROR arguments to macro_use are not allowed here
|
||||
//~^ ERROR arguments to `macro_use` are not allowed here
|
||||
|
||||
#[macro_use(my_macro)]
|
||||
//~^ ERROR arguments to macro_use are not allowed here
|
||||
//~^ ERROR arguments to `macro_use` are not allowed here
|
||||
mod macro_escape {
|
||||
mod inner { #![macro_use(my_macro)] }
|
||||
//~^ ERROR arguments to macro_use are not allowed here
|
||||
//~^ ERROR arguments to `macro_use` are not allowed here
|
||||
|
||||
#[macro_use = "2700"] struct S;
|
||||
//~^ ERROR malformed `macro_use` attribute
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
error: arguments to macro_use are not allowed here
|
||||
error: arguments to `macro_use` are not allowed here
|
||||
--> $DIR/issue-43106-gating-of-macro_use.rs:6:1
|
||||
|
|
||||
LL | #![macro_use(my_macro)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: arguments to macro_use are not allowed here
|
||||
error: arguments to `macro_use` are not allowed here
|
||||
--> $DIR/issue-43106-gating-of-macro_use.rs:9:1
|
||||
|
|
||||
LL | #[macro_use(my_macro)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: arguments to macro_use are not allowed here
|
||||
error: arguments to `macro_use` are not allowed here
|
||||
--> $DIR/issue-43106-gating-of-macro_use.rs:12:17
|
||||
|
|
||||
LL | mod inner { #![macro_use(my_macro)] }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extern crate self; //~ ERROR `extern crate self;` requires renaming
|
||||
|
||||
#[macro_use] //~ ERROR `macro_use` is not supported on `extern crate self`
|
||||
#[macro_use] //~ ERROR `#[macro_use]` is not supported on `extern crate self`
|
||||
extern crate self as foo;
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error: `extern crate self;` requires renaming
|
|||
LL | extern crate self;
|
||||
| ^^^^^^^^^^^^^^^^^^ help: try: `extern crate self as name;`
|
||||
|
||||
error: `macro_use` is not supported on `extern crate self`
|
||||
error: `#[macro_use]` is not supported on `extern crate self`
|
||||
--> $DIR/extern-crate-self-fail.rs:3:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0599]: no method named `x` found for fn item `fn() -> Ret {Obj::func}` in
|
|||
LL | Obj::func.x();
|
||||
| ^ method not found in `fn() -> Ret {Obj::func}`
|
||||
|
|
||||
= note: Obj::func is a function, perhaps you wish to call it
|
||||
= note: `Obj::func` is a function, perhaps you wish to call it
|
||||
|
||||
error[E0599]: no method named `x` found for fn item `fn() -> Ret {func}` in the current scope
|
||||
--> $DIR/issue-29124.rs:17:10
|
||||
|
|
@ -12,7 +12,7 @@ error[E0599]: no method named `x` found for fn item `fn() -> Ret {func}` in the
|
|||
LL | func.x();
|
||||
| ^ method not found in `fn() -> Ret {func}`
|
||||
|
|
||||
= note: func is a function, perhaps you wish to call it
|
||||
= note: `func` is a function, perhaps you wish to call it
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0599]: no method named `f` found for fn pointer `fn(&u8)` in the current
|
|||
LL | a.f();
|
||||
| ^ method not found in `fn(&u8)`
|
||||
|
|
||||
= note: a is a function, perhaps you wish to call it
|
||||
= note: `a` is a function, perhaps you wish to call it
|
||||
= help: items from traits can only be used if the trait is implemented and in scope
|
||||
= note: the following trait defines an item `f`, perhaps you need to implement it:
|
||||
candidate #1: `Trait`
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ LL | let _val: Void = mem::zeroed();
|
|||
| this code causes undefined behavior when executed
|
||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||
|
|
||||
= note: 0-variant enums have no valid value
|
||||
= note: enums with no variants have no valid value
|
||||
|
||||
error: the type `Void` does not permit being left uninitialized
|
||||
--> $DIR/uninitialized-zeroed.rs:47:26
|
||||
|
|
@ -119,7 +119,7 @@ LL | let _val: Void = mem::uninitialized();
|
|||
| this code causes undefined behavior when executed
|
||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||
|
|
||||
= note: 0-variant enums have no valid value
|
||||
= note: enums with no variants have no valid value
|
||||
|
||||
error: the type `&'static i32` does not permit zero-initialization
|
||||
--> $DIR/uninitialized-zeroed.rs:49:34
|
||||
|
|
@ -294,7 +294,7 @@ LL | let _val: NonNull<i32> = mem::zeroed();
|
|||
| this code causes undefined behavior when executed
|
||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||
|
|
||||
= note: std::ptr::NonNull<i32> must be non-null
|
||||
= note: `std::ptr::NonNull<i32>` must be non-null
|
||||
|
||||
error: the type `std::ptr::NonNull<i32>` does not permit being left uninitialized
|
||||
--> $DIR/uninitialized-zeroed.rs:68:34
|
||||
|
|
@ -305,7 +305,7 @@ LL | let _val: NonNull<i32> = mem::uninitialized();
|
|||
| this code causes undefined behavior when executed
|
||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||
|
|
||||
= note: std::ptr::NonNull<i32> must be non-null
|
||||
= note: `std::ptr::NonNull<i32>` must be non-null
|
||||
|
||||
error: the type `*const dyn std::marker::Send` does not permit zero-initialization
|
||||
--> $DIR/uninitialized-zeroed.rs:70:37
|
||||
|
|
@ -364,7 +364,7 @@ LL | let _val: NonBig = mem::uninitialized();
|
|||
| this code causes undefined behavior when executed
|
||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||
|
|
||||
= note: NonBig must be initialized inside its custom valid range
|
||||
= note: `NonBig` must be initialized inside its custom valid range
|
||||
|
||||
error: the type `&'static i32` does not permit zero-initialization
|
||||
--> $DIR/uninitialized-zeroed.rs:84:34
|
||||
|
|
@ -397,7 +397,7 @@ LL | let _val: NonZeroU32 = mem::transmute(0);
|
|||
| this code causes undefined behavior when executed
|
||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||
|
|
||||
= note: std::num::NonZeroU32 must be non-null
|
||||
= note: `std::num::NonZeroU32` must be non-null
|
||||
|
||||
error: the type `std::ptr::NonNull<i32>` does not permit zero-initialization
|
||||
--> $DIR/uninitialized-zeroed.rs:89:34
|
||||
|
|
@ -408,7 +408,7 @@ LL | let _val: NonNull<i32> = MaybeUninit::zeroed().assume_init();
|
|||
| this code causes undefined behavior when executed
|
||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||
|
|
||||
= note: std::ptr::NonNull<i32> must be non-null
|
||||
= note: `std::ptr::NonNull<i32>` must be non-null
|
||||
|
||||
error: the type `std::ptr::NonNull<i32>` does not permit being left uninitialized
|
||||
--> $DIR/uninitialized-zeroed.rs:90:34
|
||||
|
|
@ -419,7 +419,7 @@ LL | let _val: NonNull<i32> = MaybeUninit::uninit().assume_init();
|
|||
| this code causes undefined behavior when executed
|
||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||
|
|
||||
= note: std::ptr::NonNull<i32> must be non-null
|
||||
= note: `std::ptr::NonNull<i32>` must be non-null
|
||||
|
||||
error: the type `bool` does not permit being left uninitialized
|
||||
--> $DIR/uninitialized-zeroed.rs:91:26
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | check!(0u8);
|
||||
| ^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: unexpected token: `-0`
|
||||
--> $DIR/malformed-interpolated.rs:5:25
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#[macro_use(foo, bar)] //~ ERROR arguments to macro_use are not allowed here
|
||||
#[macro_use(foo, bar)] //~ ERROR arguments to `macro_use` are not allowed here
|
||||
mod foo {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error: arguments to macro_use are not allowed here
|
||||
error: arguments to `macro_use` are not allowed here
|
||||
--> $DIR/module-macro_use-arguments.rs:1:1
|
||||
|
|
||||
LL | #[macro_use(foo, bar)]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1usize]
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:5:17
|
||||
|
|
@ -12,7 +12,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1u8]
|
||||
| ^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:7:17
|
||||
|
|
@ -20,7 +20,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1u16]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:9:17
|
||||
|
|
@ -28,7 +28,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1u32]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:11:17
|
||||
|
|
@ -36,7 +36,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1u64]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:13:17
|
||||
|
|
@ -44,7 +44,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1isize]
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:15:17
|
||||
|
|
@ -52,7 +52,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1i8]
|
||||
| ^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:17:17
|
||||
|
|
@ -60,7 +60,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1i16]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:19:17
|
||||
|
|
@ -68,7 +68,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1i32]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:21:17
|
||||
|
|
@ -76,7 +76,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1i64]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:23:17
|
||||
|
|
@ -84,7 +84,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1.0f32]
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:25:17
|
||||
|
|
@ -92,7 +92,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1.0f64]
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:3:17
|
||||
|
|
@ -100,7 +100,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1usize]
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:5:17
|
||||
|
|
@ -108,7 +108,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1u8]
|
||||
| ^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:7:17
|
||||
|
|
@ -116,7 +116,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1u16]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:9:17
|
||||
|
|
@ -124,7 +124,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1u32]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:11:17
|
||||
|
|
@ -132,7 +132,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1u64]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:13:17
|
||||
|
|
@ -140,7 +140,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1isize]
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:15:17
|
||||
|
|
@ -148,7 +148,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1i8]
|
||||
| ^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:17:17
|
||||
|
|
@ -156,7 +156,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1i16]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:19:17
|
||||
|
|
@ -164,7 +164,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1i32]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:21:17
|
||||
|
|
@ -172,7 +172,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1i64]
|
||||
| ^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:23:17
|
||||
|
|
@ -180,7 +180,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1.0f32]
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: suffixed literals are not allowed in attributes
|
||||
--> $DIR/suffixed-literal-meta.rs:25:17
|
||||
|
|
@ -188,7 +188,7 @@ error: suffixed literals are not allowed in attributes
|
|||
LL | #[rustc_dummy = 1.0f64]
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
||||
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||
|
||||
error: aborting due to 24 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0599]: no method named `call` found for closure `[closure@$DIR/unboxed-cl
|
|||
LL | mut_.call((0, ));
|
||||
| ^^^^ method not found in `[closure@$DIR/unboxed-closures-static-call-wrong-trait.rs:6:26: 6:31]`
|
||||
|
|
||||
= note: mut_ is a function, perhaps you wish to call it
|
||||
= note: `mut_` is a function, perhaps you wish to call it
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue