Skip to content

Commit d28f66a

Browse files
author
Bruno Tavares
committed
21139
Reference rust-lang/rust#21139
1 parent 2b230a0 commit d28f66a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/21139.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![feature(unboxed_closures, core)]
2+
3+
pub struct HttpConnector<T = NoSslVerify>(Option<T>);
4+
pub struct NoSslVerify;
5+
6+
impl<'a> FnOnce<&'a mut u8> for NoSslVerify {
7+
type Output = ();
8+
#[inline(always)]
9+
extern "rust-call" fn call_once(self, _: (&mut u8)) {}
10+
}
11+
12+
fn main() {}

0 commit comments

Comments
 (0)