repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gccrs: Handle `async` functions in traits
[official-gcc.git]
/
gcc
/
testsuite
/
rust
/
compile
/
cfg2.rs
blob
ce1c5f96369a23b65badfe1d87c2a9aec8a5c417
1
// { dg-additional-options "-w -frust-cfg=A" }
2
struct Foo;
3
impl Foo {
4
#[cfg(not(A))]
5
fn test(&self) {}
6
}
7
8
fn main() {
9
let a = Foo;
10
a.test();
11
// { dg-error "no method named .test. found in the current scope" "" { target *-*-* } .-1 }
12
}