diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/feature-missing.rs (renamed from src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.rs) | 0 | ||||
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr (renamed from src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs (renamed from src/test/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs) | 0 | ||||
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.stderr | 14 | ||||
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/unknown_src.rs (renamed from src/test/ui/transmutability/malformed-program-gracefulness/unknown_src.rs) | 0 | ||||
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/unknown_src.stderr | 14 | ||||
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs (renamed from src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs) | 0 | ||||
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr (renamed from src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs (renamed from src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs) | 0 | ||||
-rw-r--r-- | tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr (renamed from src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr) | 0 |
10 files changed, 28 insertions, 0 deletions
diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.rs b/tests/ui/transmutability/malformed-program-gracefulness/feature-missing.rs index 30c381745..30c381745 100644 --- a/src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.rs +++ b/tests/ui/transmutability/malformed-program-gracefulness/feature-missing.rs diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr b/tests/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr index ba8093f86..ba8093f86 100644 --- a/src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr +++ b/tests/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs b/tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs index b3a1e13b8..b3a1e13b8 100644 --- a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs +++ b/tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs diff --git a/tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.stderr b/tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.stderr new file mode 100644 index 000000000..b4591778f --- /dev/null +++ b/tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.stderr @@ -0,0 +1,14 @@ +error[E0412]: cannot find type `Dst` in this scope + --> $DIR/unknown_dst.rs:20:36 + | +LL | assert::is_transmutable::<Src, Dst, Context>(); + | ^^^ not found in this scope + | +help: you might be missing a type parameter + | +LL | fn should_gracefully_handle_unknown_dst<Dst>() { + | +++++ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0412`. diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src.rs b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src.rs index 092b205b7..092b205b7 100644 --- a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src.rs +++ b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src.rs diff --git a/tests/ui/transmutability/malformed-program-gracefulness/unknown_src.stderr b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src.stderr new file mode 100644 index 000000000..a55d71d80 --- /dev/null +++ b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src.stderr @@ -0,0 +1,14 @@ +error[E0412]: cannot find type `Src` in this scope + --> $DIR/unknown_src.rs:20:31 + | +LL | assert::is_transmutable::<Src, Dst, Context>(); + | ^^^ not found in this scope + | +help: you might be missing a type parameter + | +LL | fn should_gracefully_handle_unknown_src<Src>() { + | +++++ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0412`. diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs index ebe34e134..ebe34e134 100644 --- a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs +++ b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr index 475e6f429..475e6f429 100644 --- a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr +++ b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs b/tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs index 52aa4bb31..52aa4bb31 100644 --- a/src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs +++ b/tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr b/tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr index c6d93876c..c6d93876c 100644 --- a/src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr +++ b/tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr |