File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ use std::autodiff::autodiff_forward;
1010extern crate my_macro;
1111use my_macro:: autodiff_forward; // bring `autodiff_forward` in scope
1212
13- #[ autodiff_forward]
13+ #[ autodiff_forward( dfoo ) ]
1414//[std_autodiff]~^^^ ERROR the name `autodiff_forward` is defined multiple times
15- //[std_autodiff]~^^ ERROR this rustc version does not support autodiff
1615fn foo ( ) { }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ error[E0252]: the name `autodiff_forward` is defined multiple times
33 |
44LL | use std::autodiff::autodiff_forward;
55 | ------------------------------- previous import of the macro `autodiff_forward` here
6- ...
6+ LL | extern crate my_macro;
77LL | use my_macro::autodiff_forward; // bring `autodiff_forward` in scope
88 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `autodiff_forward` reimported here
99 |
@@ -13,12 +13,6 @@ help: you can use `as` to change the binding name of the import
1313LL | use my_macro::autodiff_forward as other_autodiff_forward; // bring `autodiff_forward` in scope
1414 | +++++++++++++++++++++++++
1515
16- error: this rustc version does not support autodiff_forward
17- --> $DIR/visibility.rs:13:1
18- |
19- LL | #[autodiff_forward]
20- | ^^^^^^^^^^^^^^^^^^^
21-
22- error: aborting due to 2 previous errors
16+ error: aborting due to 1 previous error
2317
2418For more information about this error, try `rustc --explain E0252`.
You can’t perform that action at this time.
0 commit comments