blob: 5b22fce6311bd5e586f9d6ae9bf1dc56b4ec36af [file] [log] [blame]
//@ check-pass
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
trait Target {}
trait Source: Send + Target {}
fn upcast(x: &dyn Source) -> &(dyn Target + Send) { x }
fn same(x: &dyn Source) -> &(dyn Source + Send) { x }
fn main() {}