Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
10
tests/ui/const-generics/const-fn-with-const-param.rs
Normal file
10
tests/ui/const-generics/const-fn-with-const-param.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
// Checks that `const fn` with const params can be used.
|
||||
// run-pass
|
||||
|
||||
const fn const_u32_identity<const X: u32>() -> u32 {
|
||||
X
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert_eq!(const_u32_identity::<18>(), 18);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue