Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
14
tests/ui/inline-const/const-expr-basic.rs
Normal file
14
tests/ui/inline-const/const-expr-basic.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(inline_const)]
|
||||
|
||||
fn foo() -> i32 {
|
||||
const {
|
||||
let x = 5 + 10;
|
||||
x / 3
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert_eq!(5, foo());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue