diff options
Diffstat (limited to 'src/tools/rustfmt/tests/target/negative-impl.rs')
-rw-r--r-- | src/tools/rustfmt/tests/target/negative-impl.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/negative-impl.rs b/src/tools/rustfmt/tests/target/negative-impl.rs new file mode 100644 index 000000000..16ce7e26a --- /dev/null +++ b/src/tools/rustfmt/tests/target/negative-impl.rs @@ -0,0 +1,14 @@ +impl !Display for JoinHandle {} + +impl !Box<JoinHandle> {} + +impl !std::fmt::Display + for JoinHandle<T: std::future::Future + std::marker::Send + std::marker::Sync> +{ +} + +impl + !JoinHandle<T: std::future::Future<Output> + std::marker::Send + std::marker::Sync + 'static> + + 'static +{ +} |