We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7372c commit 06de42fCopy full SHA for 06de42f
src/lower/test.rs
@@ -292,19 +292,21 @@ fn two_blanket_impls() {
292
}
293
294
#[test]
295
-#[ignore] // Ignored until we have the compat modality
+// FIXME This should be an error
296
+// We currently assume a closed universe always, but overlaps checking should
297
+// assume an open universe - what if a client implemented both Bar and Baz
298
+//
299
+// In other words, this should have the same behavior as the two_blanket_impls
300
+// test.
301
fn two_blanket_impls_open_ended() {
- lowering_error! {
302
+ lowering_success! {
303
program {
304
trait Foo { }
305
trait Bar { }
306
trait Baz { }
307
impl<T> Foo for T where T: Bar { }
308
impl<T> Foo for T where T: Baz { }
309
- error_msg {
- "overlapping impls of trait \"Foo\""
- }
310
311
312
0 commit comments