2024-10-11 18:38:43 +00:00
|
|
|
//@ revisions: has_support no_support
|
|
|
|
//@[no_support] ignore-enzyme
|
|
|
|
//@[has_support] needs-enzyme
|
|
|
|
|
|
|
|
// This checks that without enabling the autodiff feature, we can't import std::autodiff::autodiff;
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
use std::autodiff::autodiff;
|
2024-11-02 23:10:24 +00:00
|
|
|
//[has_support]~^ ERROR use of unstable library feature `autodiff`
|
|
|
|
//[no_support]~^^ ERROR use of unstable library feature `autodiff`
|
2024-10-11 18:38:43 +00:00
|
|
|
|
|
|
|
#[autodiff(dfoo, Reverse)]
|
2024-11-02 23:10:24 +00:00
|
|
|
//[has_support]~^ ERROR use of unstable library feature `autodiff` [E0658]
|
|
|
|
//[no_support]~^^ ERROR use of unstable library feature `autodiff` [E0658]
|
2024-10-11 18:38:43 +00:00
|
|
|
//[no_support]~| ERROR this rustc version does not support autodiff
|
|
|
|
fn foo() {}
|