Skip to content

Commit 6485b6b

Browse files
committed
Change expected output of one test case.
1 parent 1975a3d commit 6485b6b

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
// run-pass
2+
13
#![feature(const_generics)]
24
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
35

46
use std::fmt::Debug;
57

68
#[derive(Debug)]
7-
struct S<T: Debug, const N: usize>([T; N]); //~ ERROR `[T; _]` doesn't implement `std::fmt::Debug`
9+
struct S<T: Debug, const N: usize>([T; N]);
810

911
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2-
--> $DIR/broken-mir-2.rs:1:12
2+
--> $DIR/broken-mir-2.rs:3:12
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
66

7-
error[E0277]: `[T; _]` doesn't implement `std::fmt::Debug`
8-
--> $DIR/broken-mir-2.rs:7:36
9-
|
10-
LL | struct S<T: Debug, const N: usize>([T; N]);
11-
| ^^^^^^ `[T; _]` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
12-
|
13-
= help: the trait `std::fmt::Debug` is not implemented for `[T; _]`
14-
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[T; _]`
15-
= note: required for the cast to the object type `dyn std::fmt::Debug`
16-
17-
error: aborting due to previous error
18-
19-
For more information about this error, try `rustc --explain E0277`.

0 commit comments

Comments
 (0)