Files
rust/tests/ui/mir/meaningless-bound.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
314 B
Rust
Raw Normal View History

//! Regression test for #140100 and #140365
//@compile-flags: -C opt-level=1 -Zvalidate-mir
fn a()
where
b: Sized,
//~^ ERROR cannot find type `b` in this scope
{
println!()
}
fn f() -> &'static str
where
Self: Sized,
//~^ ERROR cannot find type `Self` in this scope
{
""
}
fn main() {}