Skip to content

Commit 2224d2a

Browse files
committed
Add a test to make sure integer and float kinds aren't equatable
1 parent afba0fb commit 2224d2a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/test/numerics.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,19 @@ fn general_ty_kind_becomes_specific() {
169169
}
170170
}
171171
}
172+
173+
/// Integer and float type kinds can not be equated
174+
#[test]
175+
fn integers_are_not_floats() {
176+
test! {
177+
program {}
178+
179+
goal {
180+
exists<int I, float F> {
181+
I = F
182+
}
183+
} yields {
184+
"No possible solution"
185+
}
186+
}
187+
}

0 commit comments

Comments
 (0)