error: an inner attribute is not permitted in this context
--> src\main.rs:18:1
|
18 | #![feature(custom_test_frameworks)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
22 | / fn test_runner(tests: &[&dyn Fn()]) {
23 | | println!("Starting {} tests", tests.len());
24 | | for test in tests {
25 | | test();
26 | | }
27 | | }
| |_- the inner attribute doesn't annotate this function
|
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning
of source files
help: to annotate the function, change the attribute from inner to outer style
|
18 - #![feature(custom_test_frameworks)]
18 + #[feature(custom_test_frameworks)]
|
error[E0658]: use of unstable library feature 'custom_test_frameworks': custom test frameworks are an unstable feature
--> src\main.rs:29:3
|
29 | #[test_case]
| ^^^^^^^^^
|
= note: see issue #50297 for more information
= help: add `#![feature(custom_test_frameworks)]` to the crate attributes to enable
For more information about this error, try `rustc --explain E0658`.
И их так мало(дистрибутивов)?