This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
42abbd8878
rust
/
src
/
test
/
ui
/
error-codes
/
E0152.rs
8 lines
84 B
Rust
Raw
Normal View
History
Unescape
Escape
Add new error code tests
2016-05-27 22:06:24 +02:00
#![
feature(lang_items)
]
Extend lang items to assert correct target. This commit extends the existing lang items functionality to assert that the `#[lang_item]` attribute is only found on the appropriate item for any given lang item. That is, language items representing traits must only ever have their corresponding attribute placed on a trait, for example.
2018-10-11 19:36:51 +02:00
#[
lang =
"
arc
"
]
Add new error code tests
2016-05-27 22:06:24 +02:00
struct
Foo
;
//~ ERROR E0152
fn
main
(
)
{
}
Copy permalink