This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
3088c4b046
rust
/
tests
/
ui
/
associated-consts
/
associated-const-inherent-impl.rs
12 lines
105 B
Rust
Raw
Normal View
History
Unescape
Escape
Add `// run-pass` annotations to all the tests under `ui/run-pass/`. (I may have accidentally added it to some auxilliary crates as well; my emacs-macro-based methodology was pretty crude.)
2018-08-30 07:18:55 -05:00
// run-pass
Feature-gate associated constants.
2015-03-26 14:06:26 -05:00
Functional changes for associated constants. Cross-crate usage of associated constants is not yet working.
2015-03-15 20:35:25 -05:00
struct
Foo
;
impl
Foo
{
const
ID
:
i32
=
1
;
}
fn
main
(
)
{
assert_eq!
(
1
,
Foo
::
ID
)
;
}
Reference in New Issue
Copy Permalink