A doubt regarding an eruv, such as one who placed his eruv and it was consumed, and it is a doubt whether it was consumed while it was yet day—and it is not an eruv, or a doubt whether it was after dark—and it is an eruv; and similarly, one who placed terumah and it became impure, and it is a doubt whether it became impure while it was yet day—and it is not an eruv, or a doubt whether it was after dark—and it is an eruv; and so too anything similar to this—we say a doubt regarding an eruv is valid. And specifically in cases such as these, where the eruv had a presumption of validity—we establish it upon its presumption. But when it did not have a presumption of validity, such as a doubt whether he placed it or a doubt whether he did not place it, or if he placed terumah that was a doubt whether it was impure or a doubt whether it was pure, or a doubt whether it was terumah or a doubt whether it was tevel and anything similar to this—we do not say the doubt is to be lenient. And all the more so when there is a presumption to the contrary, such as one who established an eruv with non-sacred produce from which terumah and ma'aser were separated, but it is a doubt whether they were separated while it was yet day or whether after dark, for we establish it upon its presumption of tevel. (Gemara 36)
ספק עירוב, כגון שהניח עירובו ונאכל, ספק מבעוד יום נאכל - ואינו עירוב, ספק משחשיכה - והוי עירוב, וכן הניח תרומה ונטמאת, ספק מבעוד יום נטמאת - ואינו עירוב, ספק משחשיכה - והוי עירוב, וכן כל כיוצא בזה - אמרינן ספק עירוב כשר. ודוקא בכהני גווני, שהיה לו להעירוב חזקת כשרות - מוקמינן אחזקה. אבל כשלא היה לו חזקת כשרות, כגון ספק הניח ספק לא הניח, או הניח תרומה ספק טמאה ספק טהורה, או ספק תרומה ספק טבל וכיוצא בזה - לא אמרינן ספיקא להקל. וכל שכן כשיש חזקה להיפך, כגון עירב בחולין שנפרש מהם תרומה ומעשר, אך ספק אם מבעוד יום הופרש, אם משחשיכה, דמעמידין אותה אחזקת טבל שלה. (גמרא ל"ו)