aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/additional-trait-bounds2.rs
blob: 843228ae9a64d25975062085b420587fc49f06d1 (plain)
1
2
3
4
5
6
7
8
9
#![feature(optin_builtin_traits)]

pub unsafe auto trait Send {}
#[lang = "sync"]
pub unsafe auto trait Sync {}

trait A {}

impl dyn A + Send + Sync + NonExist {} // { dg-error "failed to resolve TypePath: NonExist in this scope" }