This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
2
Packages
Projects
Releases
Wiki
Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust
/
tests
/
ui
/
span
/
gated-features-attr-spans.rs
7 lines
89 B
Rust
Raw
Normal View
History
Unescape
Escape
Merge cfail and ui tests into ui tests
2017-11-20 13:13:27 +01:00
#[
repr(simd)
]
//~ ERROR are experimental
Make sure feature gate errors are recoverable (take 2)
2019-01-02 17:14:24 +03:00
struct
Coord
{
Ban non-array SIMD
2024-08-22 01:28:20 -07:00
v
:
[
u32
;
2
]
,
feature error span on attr. for fn_must_use, SIMD/align, macro reëxport There were several feature-gated attributes for which the feature-not-available error spans would point to the item annotated with the gated attribute, when it would make more sense for the span to point to the attribute itself: if the attribute is removed, the function/struct/&c. likely still makes sense and the program will compile. (Note that we decline to make the analogous change for the `main`, `start`, and `plugin_registrar` features, for in those cases it makes sense for the span to implicate the entire function, of which there is little hope of using without the gated attribute.)
2017-08-26 18:00:33 -07:00
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink