rust/tests/ui/autodiff/visibility.std_autodiff.stderr
Marcelo Domínguez 8dd62e8188 Update UI tests
2025-05-21 07:24:43 +00:00

25 lines
1003 B
Plaintext

error[E0252]: the name `autodiff_forward` is defined multiple times
--> $DIR/visibility.rs:11:5
|
LL | use std::autodiff::autodiff_forward;
| ------------------------------- previous import of the macro `autodiff_forward` here
LL | extern crate my_macro;
LL | use my_macro::autodiff_forward; // bring `autodiff_forward` in scope
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `autodiff_forward` reimported here
|
= note: `autodiff_forward` must be defined only once in the macro namespace of this module
help: you can use `as` to change the binding name of the import
|
LL | use my_macro::autodiff_forward as other_autodiff_forward; // bring `autodiff_forward` in scope
| +++++++++++++++++++++++++
error: this rustc version does not support autodiff
--> $DIR/visibility.rs:13:1
|
LL | #[autodiff_forward(dfoo)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0252`.