Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/ui/associated-consts/associated-const-marks-live-code.rs

16 lines
167 B
Rust
Raw Normal View History

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 14:18:55 +02:00
// run-pass
Feature-gate associated constants.
2015-03-26 13:06:26 -06:00
Add previously omitted associated const tests.
2015-03-22 04:38:42 -06:00
#![deny(dead_code)]
const GLOBAL_BAR: u32 = 1;
Functional changes for associated constants. Cross-crate usage of associated constants is not yet working.
2015-03-15 19:35:25 -06:00
Add previously omitted associated const tests.
2015-03-22 04:38:42 -06:00
struct Foo;
impl Foo {
const BAR: u32 = GLOBAL_BAR;
Functional changes for associated constants. Cross-crate usage of associated constants is not yet working.
2015-03-15 19:35:25 -06:00
}
Fix dead code check for associated const impls.
2015-03-22 19:24:56 -06:00
pub fn main() {
Add previously omitted associated const tests.
2015-03-22 04:38:42 -06:00
let _: u32 = Foo::BAR;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2278ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API