Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/consteval/tests.rs')
-rw-r--r--crates/hir-ty/src/consteval/tests.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir-ty/src/consteval/tests.rs b/crates/hir-ty/src/consteval/tests.rs
index 86228250c2..c4cbaaa301 100644
--- a/crates/hir-ty/src/consteval/tests.rs
+++ b/crates/hir-ty/src/consteval/tests.rs
@@ -2007,7 +2007,7 @@ fn function_traits() {
);
check_number(
r#"
- //- minicore: coerce_unsized, fn
+ //- minicore: coerce_unsized, fn, dispatch_from_dyn
fn add2(x: u8) -> u8 {
x + 2
}
@@ -2062,7 +2062,7 @@ fn function_traits() {
fn dyn_trait() {
check_number(
r#"
- //- minicore: coerce_unsized, index, slice
+ //- minicore: coerce_unsized, index, slice, dispatch_from_dyn
trait Foo {
fn foo(&self) -> u8 { 10 }
}
@@ -2085,7 +2085,7 @@ fn dyn_trait() {
);
check_number(
r#"
- //- minicore: coerce_unsized, index, slice
+ //- minicore: coerce_unsized, index, slice, dispatch_from_dyn
trait Foo {
fn foo(&self) -> i32 { 10 }
}
@@ -2109,7 +2109,7 @@ fn dyn_trait() {
);
check_number(
r#"
- //- minicore: coerce_unsized, index, slice
+ //- minicore: coerce_unsized, index, slice, dispatch_from_dyn
trait A {
fn x(&self) -> i32;
}