mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Added consteval tests
This commit is contained in:
parent
2f84b6e2e5
commit
ad0a6bf1a3
6 changed files with 46 additions and 11 deletions
|
@ -203,7 +203,7 @@ pub fn eval_const(
|
|||
Ok(ComputedExpr::Enum(
|
||||
get_name(variant, ctx),
|
||||
variant,
|
||||
Literal::Int(value + 1, Some(BuiltinInt::I128)),
|
||||
Literal::Int(value, Some(BuiltinInt::I128)),
|
||||
))
|
||||
}
|
||||
_ => Err(ConstEvalError::IncompleteExpr),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue