Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
4bb7bf64e07fee97439ee6e647aa2b58cbaac54d
rust/tests/ui/attributes/inline-attribute-enum-variant-error.rs

10 lines
167 B
Rust
Raw Normal View History

cleaned up some tests
2025-06-12 18:29:22 +05:00
//! Test that #[inline] attribute cannot be applied to enum variants
passes: `check_attr` on more targets This commit modifies `check_attr` so that: - Enum variants are now checked (some attributes would not have been prohibited on variants previously). - `check_expr_attributes` and `check_stmt_attributes` are removed as `check_attributes` can perform the same checks. Signed-off-by: David Wood <david@davidtw.co>
2020-09-10 19:54:17 +01:00
enum Foo {
#[inline]
Update uitests Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-08-09 20:41:01 +02:00
//~^ ERROR attribute cannot be used on
passes: `check_attr` on more targets This commit modifies `check_attr` so that: - Enum variants are now checked (some attributes would not have been prohibited on variants previously). - `check_expr_attributes` and `check_stmt_attributes` are removed as `check_attributes` can perform the same checks. Signed-off-by: David Wood <david@davidtw.co>
2020-09-10 19:54:17 +01:00
Variant,
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1421ms 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