diff options
Diffstat (limited to 'tests/ui/traits/new-solver/unsize-although-ambiguous.rs')
-rw-r--r-- | tests/ui/traits/new-solver/unsize-although-ambiguous.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/ui/traits/new-solver/unsize-although-ambiguous.rs b/tests/ui/traits/new-solver/unsize-although-ambiguous.rs deleted file mode 100644 index 431988a5f..000000000 --- a/tests/ui/traits/new-solver/unsize-although-ambiguous.rs +++ /dev/null @@ -1,13 +0,0 @@ -// check-pass -// compile-flags: -Ztrait-solver=next - -use std::fmt::Display; - -fn box_dyn_display(_: Box<dyn Display>) {} - -fn main() { - // During coercion, we don't necessarily know whether `{integer}` implements - // `Display`. Before, that would cause us to bail out in the coercion loop when - // checking `{integer}: Unsize<dyn Display>`. - box_dyn_display(Box::new(1)); -} |