Skip to content

Commit

Permalink
Fix typo in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
BGR360 committed Mar 25, 2022
1 parent 946bf54 commit d912178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Value for FortyTwo {
}
}

const ZERO: u32 = get_value::<FortyTwo>();
const ZERO: u32 = get_value::<()>();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LL | T::value()
| |
| calling non-const function `<FortyTwo as Value>::value`
| inside `get_value::<FortyTwo>` at $DIR/const-default-non-const-specialized.rs:13:5
| inside `FORTY_TWO` at $DIR/const-default-non-const-specialized.rs:34:24
| inside `FORTY_TWO` at $DIR/const-default-non-const-specialized.rs:35:24
...
LL | const FORTY_TWO: u32 = get_value::<FortyTwo>();
| -----------------------------------------------
Expand Down

0 comments on commit d912178

Please sign in to comment.