Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
proc-macro
/
expand-with-a-macro.rs
blob: fcaafbbc1490e0db44a4779605b891ffbe064453 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
//@ needs-unwind
//@ aux-build:expand-with-a-macro.rs
#![
deny
(
warnings
)]
#[
macro_use
]
extern
crate expand_with_a_macro
;
use
std
::
panic
;
#[
derive
(
A
)]
struct
A
;
fn
main
()
{
assert
!(
panic
::
catch_unwind
(||
{
A
.
a
();
}).
is_err
());
}