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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/issues/issue-31769.rs

5 lines
195 B
Rust
Raw Normal View History

Fix error[E0518] not displayed for #[inline] on structs inside fns
2016-02-19 22:27:50 +05:30
fn main() {
Allow #[inline] on closures Fixes #49632
2018-04-27 07:20:46 +02:00
#[inline] struct Foo; //~ ERROR attribute should be applied to function or closure
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
#[repr(C)] fn foo() {} //~ ERROR attribute should be applied to a struct, enum, or union
Fix error[E0518] not displayed for #[inline] on structs inside fns
2016-02-19 22:27:50 +05:30
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5232ms 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