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/auto-traits/auto-is-contextual.rs

19 lines
201 B
Rust
Raw Normal View History

tests: Add missing run-pass annotations
2019-07-27 00:54:25 +03:00
// run-pass
Allow various lints as part of ui-ifying `src/test/run-pass` suite.
2018-09-14 12:20:28 +02:00
#![allow(path_statements)]
#![allow(dead_code)]
Parse auto traits the same as traits. This moves the well formedness checks to the AST validation pass. Tests were adjusted. The auto keyword should be back-compat now.
2017-10-15 16:03:03 -02:00
macro_rules! auto {
() => (struct S;)
}
Add tests for `auto trait`, fix parsing bug Now we can do the well formedness checks in the parser, yay!
2017-10-12 19:00:30 -03:00
Parse auto traits the same as traits. This moves the well formedness checks to the AST validation pass. Tests were adjusted. The auto keyword should be back-compat now.
2017-10-15 16:03:03 -02:00
auto!();
fn auto() {}
fn main() {
auto();
let auto = 10;
auto;
auto as u8;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1713ms Template: 2ms
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