Closed
Description
As part of an effort to stabilize the re_rebalance_coherence
RFC (#63599), I was creating tests trying to get more coverage of all possible scenarios, and I found that we don't seem to be handling fundamental types in the way that the RFC specifies.
In particular this test is presently accepted and yet ought to be rejected:
#![feature(re_rebalance_coherence)]
extern crate coherence_lib as lib;
use lib::*;
use std::rc::Rc;
struct Local;
impl<T> Remote1<Local> for Box<T> { /* should error */ }
impl<T> Remote1<Local> for &T { /* should error */ }
fn main() {}
I'll be adding this test (along with some others) in a PR soon with "FIXME" comments.
Metadata
Metadata
Assignees
Labels
Area: Trait systemCategory: This is a bug.`#![feature(re_rebalance_coherence)]`Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessRelevant to the compiler team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.