Fix tests output.
This commit is contained in:
parent
6c69a40083
commit
36fe02558e
@ -4,8 +4,8 @@ error: unknown attribute 'unknown'
|
||||
11 | #[rhai_fn(unknown = "thing")]
|
||||
| ^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_mod`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_bad_attr.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared type or module `test_mod`
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -4,8 +4,8 @@ error: expecting string literal
|
||||
11 | #[rhai_fn(name = true)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_mod`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_bad_value.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared type or module `test_mod`
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -4,8 +4,8 @@ error: cfg attributes not allowed on this item
|
||||
11 | #[cfg(not(feature = "foo"))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_mod`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_cfg.rs:23:8
|
||||
|
|
||||
23 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared type or module `test_mod`
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -4,8 +4,8 @@ error: extraneous value
|
||||
11 | #[rhai_fn(return_raw = "yes")]
|
||||
| ^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_mod`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_extra_value.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared type or module `test_mod`
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -4,8 +4,8 @@ error: expecting identifier
|
||||
11 | #[rhai_fn("wheeeee")]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_mod`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_junk_arg.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared type or module `test_mod`
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -4,8 +4,8 @@ error: requires value
|
||||
11 | #[rhai_fn(name)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_mod`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_missing_value.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared type or module `test_mod`
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -4,8 +4,8 @@ error: expecting attribute name
|
||||
11 | #[rhai_fn(rhai::name = "thing")]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_mod`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_path_attr.rs:22:8
|
||||
|
|
||||
22 | if test_mod::test_fn(n) {
|
||||
| ^^^^^^^^ use of undeclared type or module `test_mod`
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -4,8 +4,8 @@ error: return_raw functions must return Result<T>
|
||||
12 | pub fn test_fn(input: &mut Point) {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_mod`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_mod`
|
||||
--> $DIR/export_mod_raw_noreturn.rs:22:5
|
||||
|
|
||||
22 | test_mod::test_fn(&mut n);
|
||||
| ^^^^^^^^ use of undeclared type or module `test_mod`
|
||||
| ^^^^^^^^ use of undeclared crate or module `test_mod`
|
||||
|
@ -4,8 +4,8 @@ error: cfg attributes not allowed on this item
|
||||
13 | #[cfg(feature = "foo")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/module_cfg_const.rs:26:8
|
||||
|
|
||||
26 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: cfg attributes not allowed on this item
|
||||
11 | #[cfg(not(feature = "foo"))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/module_cfg_fn.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: unknown attribute 'unknown'
|
||||
11 | #[rhai_fn(unknown = "thing")]
|
||||
| ^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_bad_attr.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: expecting string literal
|
||||
11 | #[rhai_fn(name = true)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_bad_value.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: extraneous value
|
||||
11 | #[rhai_fn(return_raw = "yes")]
|
||||
| ^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_extra_value.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: expecting identifier
|
||||
11 | #[rhai_fn("wheeeee")]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_junk_arg.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: requires value
|
||||
11 | #[rhai_fn(name)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_missing_value.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: expecting attribute name
|
||||
11 | #[rhai_fn(rhai::name = "thing")]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_path_attr.rs:22:8
|
||||
|
|
||||
22 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -10,8 +10,8 @@ error: duplicated function renamed 'foo'
|
||||
12 | #[rhai_fn(name = "foo")]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_collision.rs:28:8
|
||||
|
|
||||
28 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -10,8 +10,8 @@ error: duplicated function 'foo'
|
||||
17 | pub fn foo(input: Point) -> bool {
|
||||
| ^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_collision_oneattr.rs:27:8
|
||||
|
|
||||
27 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -10,8 +10,8 @@ error: duplicated function renamed 'get$bar'
|
||||
12 | #[rhai_fn(name = "foo", get = "bar")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:25:8
|
||||
|
|
||||
25 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -10,8 +10,8 @@ error: duplicated function renamed 'foo'
|
||||
12 | #[rhai_fn(name = "foo", name = "bar", name = "foo")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_collision_with_itself.rs:20:8
|
||||
|
|
||||
20 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: Rhai function names may not contain dot
|
||||
12 | #[rhai_fn(name = "foo.bar")]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_fn_rename_dot.rs:23:8
|
||||
|
|
||||
23 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: unknown attribute 'unknown'
|
||||
11 | #[rhai_mod(unknown = "thing")]
|
||||
| ^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_bad_attr.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: expecting string literal
|
||||
11 | #[rhai_mod(name = true)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_bad_value.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: expecting identifier
|
||||
11 | #[rhai_mod("wheeeee")]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_junk_arg.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: requires value
|
||||
11 | #[rhai_mod(name)]
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_missing_value.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -10,8 +10,8 @@ error: duplicated function 'test_fn'
|
||||
12 | pub fn test_fn(input: Point) -> bool {
|
||||
| ^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_name_collisions.rs:26:8
|
||||
|
|
||||
26 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: expecting attribute name
|
||||
11 | #[rhai_mod(rhai::name = "thing")]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_path_attr.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
@ -4,8 +4,8 @@ error: unknown attribute 'return_raw'
|
||||
11 | #[rhai_mod(return_raw = "yes")]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `test_module`
|
||||
--> $DIR/rhai_mod_return_raw.rs:24:8
|
||||
|
|
||||
24 | if test_module::test_fn(n) {
|
||||
| ^^^^^^^^^^^ use of undeclared type or module `test_module`
|
||||
| ^^^^^^^^^^^ use of undeclared crate or module `test_module`
|
||||
|
Loading…
Reference in New Issue
Block a user