This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Issues
Pull requests
Activity
1e1b081e0e
rust
/
src
/
test
/
ui
/
custom_attribute.rs
10 lines
190 B
Rust
Raw
Normal View
History
Unescape
Escape
Check that custom attributes are disallowed on statements and expressions
2016-06-10 10:36:21 +00:00
#![
feature(stmt_expr_attributes)
]
Add cfail test for custom attribute gate
2015-02-15 17:09:54 +05:30
#[
foo
]
//~ ERROR The attribute `foo`
fn
main
(
)
{
Check that custom attributes are disallowed on statements and expressions
2016-06-10 10:36:21 +00:00
#[
foo
]
//~ ERROR The attribute `foo`
let
x
=
(
)
;
#[
foo
]
//~ ERROR The attribute `foo`
x
Stabilize std::path This commit stabilizes essentially all of the new `std::path` API. The API itself is changed in a couple of ways (which brings it in closer alignment with the RFC): * `.` components are now normalized away, unless they appear at the start of a path. This in turn effects the semantics of e.g. asking for the file name of `foo/` or `foo/.`, both of which yield `Some("foo")` now. This semantics is what the original RFC specified, and is also desirable given early experience rolling out the new API. * The `parent` function now succeeds if, and only if, the path has at least one non-root/prefix component. This change affects `pop` as well. * The `Prefix` component now involves a separate `PrefixComponent` struct, to better allow for keeping both parsed and unparsed prefix data. In addition, the `old_path` module is now deprecated. Closes #23264 [breaking-change]
2015-03-09 08:49:10 -07:00
}
Reference in a new issue
Copy permalink