summaryrefslogtreecommitdiffstats
path: root/src/test/ui/dyn-star/make-dyn-star.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/dyn-star/make-dyn-star.rs')
-rw-r--r--src/test/ui/dyn-star/make-dyn-star.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/dyn-star/make-dyn-star.rs b/src/test/ui/dyn-star/make-dyn-star.rs
index 708ffa25d..e5255a64b 100644
--- a/src/test/ui/dyn-star/make-dyn-star.rs
+++ b/src/test/ui/dyn-star/make-dyn-star.rs
@@ -5,9 +5,14 @@
use std::fmt::Debug;
fn make_dyn_star(i: usize) {
+ let _dyn_i: dyn* Debug = i;
+}
+
+fn make_dyn_star_explicit(i: usize) {
let _dyn_i: dyn* Debug = i as dyn* Debug;
}
fn main() {
make_dyn_star(42);
+ make_dyn_star_explicit(42);
}