mirror of https://github.com/rust-lang/rust.git
Bless UI tests.
This commit is contained in:
parent
1b3fda4978
commit
7f395f1eff
|
@ -1,8 +1,8 @@
|
|||
error[E0015]: cannot call non-const formatting macro in constant functions
|
||||
--> $DIR/format.rs:2:20
|
||||
--> $DIR/format.rs:2:13
|
||||
|
|
||||
LL | panic!("{:?}", 0);
|
||||
| ^
|
||||
| ^^^^
|
||||
|
|
||||
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
||||
= note: this error originates in the macro `$crate::const_format_args` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
@ -17,10 +17,10 @@ LL | panic!("{:?}", 0);
|
|||
= note: this error originates in the macro `$crate::const_format_args` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0015]: cannot call non-const formatting macro in constant functions
|
||||
--> $DIR/format.rs:8:22
|
||||
--> $DIR/format.rs:8:15
|
||||
|
|
||||
LL | println!("{:?}", 0);
|
||||
| ^
|
||||
| ^^^^
|
||||
|
|
||||
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
||||
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
|
@ -300,10 +300,9 @@ error[E0308]: mismatched types
|
|||
--> $DIR/ifmt-bad-arg.rs:78:32
|
||||
|
|
||||
LL | println!("{} {:.*} {}", 1, 3.2, 4);
|
||||
| ^^^
|
||||
| |
|
||||
| expected `&usize`, found `&{float}`
|
||||
| arguments to this function are incorrect
|
||||
| -- ^^^ expected `&usize`, found `&{float}`
|
||||
| |
|
||||
| arguments to this function are incorrect
|
||||
|
|
||||
= note: expected reference `&usize`
|
||||
found reference `&{float}`
|
||||
|
@ -315,10 +314,9 @@ error[E0308]: mismatched types
|
|||
--> $DIR/ifmt-bad-arg.rs:81:35
|
||||
|
|
||||
LL | println!("{} {:07$.*} {}", 1, 3.2, 4);
|
||||
| ^^^
|
||||
| |
|
||||
| expected `&usize`, found `&{float}`
|
||||
| arguments to this function are incorrect
|
||||
| -- ^^^ expected `&usize`, found `&{float}`
|
||||
| |
|
||||
| arguments to this function are incorrect
|
||||
|
|
||||
= note: expected reference `&usize`
|
||||
found reference `&{float}`
|
||||
|
|
|
@ -2,7 +2,9 @@ error[E0277]: the trait bound `str: UpperHex` is not satisfied
|
|||
--> $DIR/ifmt-unimpl.rs:2:21
|
||||
|
|
||||
LL | format!("{:X}", "3");
|
||||
| ^^^ the trait `UpperHex` is not implemented for `str`
|
||||
| ---- ^^^ the trait `UpperHex` is not implemented for `str`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the following other types implement trait `UpperHex`:
|
||||
&T
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
error[E0277]: `<impl IntoIterator as IntoIterator>::Item` doesn't implement `std::fmt::Display`
|
||||
--> $DIR/issue-97760.rs:4:20
|
||||
--> $DIR/issue-97760.rs:4:19
|
||||
|
|
||||
LL | println!("{x}");
|
||||
| ^ `<impl IntoIterator as IntoIterator>::Item` cannot be formatted with the default formatter
|
||||
| ^^^ `<impl IntoIterator as IntoIterator>::Item` cannot be formatted with the default formatter
|
||||
|
|
||||
= help: the trait `std::fmt::Display` is not implemented for `<impl IntoIterator as IntoIterator>::Item`
|
||||
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
|
||||
|
|
Loading…
Reference in New Issue