This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
3088c4b046
rust
/
tests
/
ui
/
span
/
gated-features-attr-spans.rs
8 lines
96 B
Rust
Raw
Normal View
History
Unescape
Escape
Merge cfail and ui tests into ui tests
2017-11-20 06:13:27 -06:00
#[
repr(simd)
]
//~ ERROR are experimental
Make sure feature gate errors are recoverable (take 2)
2019-01-02 08:14:24 -06:00
struct
Coord
{
x
:
u32
,
y
:
u32
,
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 20:00:33 -05:00
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink