This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Issues
Pull requests
Activity
d855ca044d
rust
/
tests
/
ui
/
static
/
static-vec-repeat-not-constant.rs
7 lines
93 B
Rust
Raw
Normal View
History
Unescape
Escape
Update compile fail tests to use isize.
2015-01-08 21:54:35 +11:00
fn
foo
(
)
->
isize
{
23
}
Add test for repeat expr in statics.
2013-08-12 21:15:19 -04:00
Update compile fail tests to use isize.
2015-01-08 21:54:35 +11:00
static
a
:
[
isize
;
2
]
=
[
foo
(
)
;
2
]
;
Make various fixes: - add feature gate - add basic tests - adjust parser to eliminate conflict between `const fn` and associated constants - allow `const fn` in traits/trait-impls, but forbid later in type check - correct some merge conflicts
2015-05-05 08:47:04 -04:00
//~^ ERROR: E0015
Add test for repeat expr in statics.
2013-08-12 21:15:19 -04:00
fn
main
(
)
{
}
Reference in a new issue
Copy permalink