Skip to content

Commit d912178

Browse files
committed
Fix typo in test.
1 parent 946bf54 commit d912178

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-non-const-specialized.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl Value for FortyTwo {
3030
}
3131
}
3232

33-
const ZERO: u32 = get_value::<FortyTwo>();
33+
const ZERO: u32 = get_value::<()>();
3434

3535
const FORTY_TWO: u32 = get_value::<FortyTwo>();
3636

src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-non-const-specialized.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | T::value()
66
| |
77
| calling non-const function `<FortyTwo as Value>::value`
88
| inside `get_value::<FortyTwo>` at $DIR/const-default-non-const-specialized.rs:13:5
9-
| inside `FORTY_TWO` at $DIR/const-default-non-const-specialized.rs:34:24
9+
| inside `FORTY_TWO` at $DIR/const-default-non-const-specialized.rs:35:24
1010
...
1111
LL | const FORTY_TWO: u32 = get_value::<FortyTwo>();
1212
| -----------------------------------------------

0 commit comments

Comments
 (0)