File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 66#![ feature( autodiff) ]
77
88#[ cfg( std_autodiff) ]
9- use std:: autodiff:: autodiff;
10-
9+ use std:: autodiff:: autodiff_forward;
1110extern crate my_macro;
12- use my_macro:: autodiff ; // bring `autodiff` in scope
11+ use my_macro:: autodiff_forward ; // bring `autodiff` in scope
1312
14- #[ autodiff ]
13+ #[ autodiff_forward ]
1514//[std_autodiff]~^^^ ERROR the name `autodiff` is defined multiple times
1615//[std_autodiff]~^^ ERROR this rustc version does not support autodiff
1716fn foo ( ) { }
Original file line number Diff line number Diff line change 1- error[E0252]: the name `autodiff ` is defined multiple times
1+ error[E0252]: the name `autodiff_forward ` is defined multiple times
22 --> $DIR/visibility.rs:12:5
33 |
4- LL | use std::autodiff::autodiff ;
5- | ----------------------- previous import of the macro `autodiff` here
4+ LL | use std::autodiff::autodiff_forward ;
5+ | ------------------------------- previous import of the macro `autodiff` here
66...
7- LL | use my_macro::autodiff ; // bring `autodiff` in scope
8- | ^^^^^^^^^^^^^^^^^^ `autodiff` reimported here
7+ LL | use my_macro::autodiff_forward ; // bring `autodiff` in scope
8+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `autodiff` reimported here
99 |
10- = note: `autodiff ` must be defined only once in the macro namespace of this module
10+ = note: `autodiff_forward ` must be defined only once in the macro namespace of this module
1111help: you can use `as` to change the binding name of the import
1212 |
13- LL | use my_macro::autodiff as other_autodiff ; // bring `autodiff ` in scope
14- | +++++++++++++++++
13+ LL | use my_macro::autodiff_forward as other_autodiff_forward ; // bring `autodiff_forward ` in scope
14+ | +++++ +++++++++++++++++
1515
16- error: this rustc version does not support autodiff
16+ error: this rustc version does not support autodiff_forward
1717 --> $DIR/visibility.rs:14:1
1818 |
19- LL | #[autodiff ]
20- | ^^^^^^^^^^^
19+ LL | #[autodiff_forward ]
20+ | ^^^^^^^^^^^^^^^^^^^
2121
2222error: aborting due to 2 previous errors
2323
You can’t perform that action at this time.
0 commit comments