summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-47486.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-47486.stderr')
-rw-r--r--tests/ui/issues/issue-47486.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-47486.stderr b/tests/ui/issues/issue-47486.stderr
new file mode 100644
index 000000000..c7e9af70e
--- /dev/null
+++ b/tests/ui/issues/issue-47486.stderr
@@ -0,0 +1,18 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-47486.rs:2:10
+ |
+LL | () < std::mem::size_of::<_>();
+ | -- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `usize`
+ | |
+ | expected because this is `()`
+
+error[E0282]: type annotations needed
+ --> $DIR/issue-47486.rs:3:11
+ |
+LL | [0u8; std::mem::size_of::<_>()];
+ | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `size_of`
+
+error: aborting due to 2 previous errors
+
+Some errors have detailed explanations: E0282, E0308.
+For more information about an error, try `rustc --explain E0282`.