Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion crates/hir-ty/src/tests/regression/new_solver.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use expect_test::expect;

use super::check_infer;
use crate::tests::{check_infer, check_no_mismatches};

#[test]
fn opaque_generics() {
Expand Down Expand Up @@ -50,3 +50,24 @@ fn main() {
"#]],
);
}

#[test]
fn regression_20487() {
check_no_mismatches(
r#"
//- minicore: coerce_unsized, dispatch_from_dyn
trait Foo {
fn bar(&self) -> u32 {
0xCAFE
}
}
fn debug(_: &dyn Foo) {}
impl Foo for i32 {}
fn main() {
debug(&1);
}"#,
);
}
Loading