Skip to content

Commit 16daaa6

Browse files
committed
trivial_casts-rpass
1 parent effa3f8 commit 16daaa6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/ui/cast/coercion-as-explicit-cast.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
//! This test checks that various forms of "trivial" casts and coercions
2+
//! can be explicitly performed using the `as` keyword without compilation errors.
3+
14
//@ run-pass
2-
// Test that all coercions can actually be done using casts (modulo the lints).
35

46
#![allow(trivial_casts, trivial_numeric_casts)]
57

tests/ui/cast/coercion-as-explicit-cast.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: method `foo` is never used
2-
--> $DIR/trivial_casts-rpass.rs:7:8
2+
--> $DIR/coercion-as-explicit-cast.rs:9:8
33
|
44
LL | trait Foo {
55
| --- method in this trait

0 commit comments

Comments
 (0)