This website requires JavaScript.
Explore
Sign In
mirror
/
rust
mirror of
https://github.com/rust-lang/rust
Watch
1
Star
0
Fork
You've already forked rust
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
associated-consts
/
associated-const-inherent-i...
12 lines
106 B
Rust
Raw
Permalink
Blame
History
//@ run-pass
struct
Foo
;
impl
Foo
{
const
ID
:
i32
=
1
;
}
fn
main
(
)
{
assert_eq!
(
1
,
Foo
::
ID
)
;
}
Reference in New Issue
View Git Blame
Copy Permalink