Sign in
fuchsia
/
third_party
/
rust
/
d5fe5831ecc82d2705110810261b79ae4040c403
/
.
/
src
/
test
/
ui
/
collections-const-new.rs
blob: 15c5c65ff81f33c52e3e26bb6038c73e56248b90 [
file
] [
log
] [
blame
]
// run-pass
// Test several functions can be used for constants
// 1. Vec::new()
// 2. String::new()
#![
feature
(
const_string_new
)]
const
MY_VEC
:
Vec
<
usize
>
=
Vec
::
new
();
const
MY_STRING
:
String
=
String
::
new
();
fn
main
()
{}