This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-06-18 10:38:11 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
901b340c1f
rust
/
tests
/
ui
/
associated-consts
/
associated-const-inherent-impl.rs
12 lines
106 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Feature-gate associated constants.
2015-03-26 19:06:26 +00:00
Functional changes for associated constants. Cross-crate usage of associated constants is not yet working.
2015-03-16 01:35:25 +00:00
struct
Foo
;
impl
Foo
{
const
ID
:
i32
=
1
;
}
fn
main
(
)
{
assert_eq!
(
1
,
Foo
::
ID
)
;
}
Reference in New Issue
Copy Permalink