Skip to content

Commit 8a40aa3

Browse files
committed
Disable impl Trait test with --features trace
That didn't work due to naming the type in `__peg_result` previously, and I don't see a good way to avoid that without breaking other things.
1 parent 17eeeee commit 8a40aa3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/run-pass/return_type.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use std::fmt::Debug;
22

3+
// `--features trace` code names the return type, so doesn't work with `impl Trait`
4+
#[cfg(not(feature = "trace"))]
35
peg::parser!{
46
grammar g() for str {
57
pub rule returns_impl_trait() -> impl Debug
@@ -8,5 +10,6 @@ peg::parser!{
810
}
911

1012
fn main() {
13+
#[cfg(not(feature = "trace"))]
1114
assert_eq!(format!("{:?}", g::returns_impl_trait("")), "Ok(5)");
1215
}

0 commit comments

Comments
 (0)