diff options
Diffstat (limited to 'tests/ui/error-codes/E0308.stderr')
-rw-r--r-- | tests/ui/error-codes/E0308.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0308.stderr b/tests/ui/error-codes/E0308.stderr new file mode 100644 index 000000000..187b775f9 --- /dev/null +++ b/tests/ui/error-codes/E0308.stderr @@ -0,0 +1,12 @@ +error[E0308]: intrinsic has wrong type + --> $DIR/E0308.rs:6:5 + | +LL | fn size_of<T>(); + | ^^^^^^^^^^^^^^^^ expected `()`, found `usize` + | + = note: expected fn pointer `extern "rust-intrinsic" fn()` + found fn pointer `extern "rust-intrinsic" fn() -> usize` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0308`. |