Skip to content

Commit 0a60c29

Browse files
committed
Trait upcasting is stable (again)
1 parent 38013fb commit 0a60c29

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tests/ui/upcasting.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// SPDX-License-Identifier: MIT OR Apache-2.0
44

55
#![crate_type="lib"]
6-
#![feature(trait_upcasting)]
76

87
#[klint::drop_preempt_count(expect = 0)]
98
trait A {}

tests/ui/upcasting.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: casting between traits with incompatible preemption count properties
2-
--> $DIR/upcasting.rs:15:5
2+
--> $DIR/upcasting.rs:14:5
33
|
4-
15 | x
4+
14 | x
55
| ^
66
|
77
= help: adjustment of `dyn B` is 0 and expectation is 1

0 commit comments

Comments
 (0)