summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/issue-13352.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/never_type/issue-13352.stderr')
-rw-r--r--tests/ui/never_type/issue-13352.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/never_type/issue-13352.stderr b/tests/ui/never_type/issue-13352.stderr
new file mode 100644
index 000000000..2d22da0b4
--- /dev/null
+++ b/tests/ui/never_type/issue-13352.stderr
@@ -0,0 +1,16 @@
+error[E0277]: cannot add `()` to `usize`
+ --> $DIR/issue-13352.rs:7:13
+ |
+LL | 2_usize + (loop {});
+ | ^ no implementation for `usize + ()`
+ |
+ = help: the trait `Add<()>` is not implemented for `usize`
+ = help: the following other types implement trait `Add<Rhs>`:
+ <&'a usize as Add<usize>>
+ <&usize as Add<&usize>>
+ <usize as Add<&usize>>
+ <usize as Add>
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.